| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 15444 | 罗炜翰 | 座位(seat) | C++ | Accepted | 100 | 2 MS | 264 KB | 334 | 2026-02-01 17:23:31 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m,x,y,k=0; cin>>n>>m; int a[(n+1)*(m+1)]; for(int i=1;i<=n*m;i++){ cin>>a[i]; } for(int i=1;i<=n*m;i++){ if(a[i]>a[1]){ k++; } } x=k/n+1; if(x%2==0){ y=n-k%n; } else if(x%2!=0){ y=k%n+1; } cout<<x<<' '<<y; return 0; }