# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
16414 | comet | 대표 선수 (KOI11_player) | C++98 | 387 ms | 5008 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
struct player{
int x,v;
bool operator<(const player& r)const{
return x<r.x;
}
}s[2000];
int n,m,a[1000][1000];
int sz,z,L,R,ans=1e9;
int chk[1000],cnt;
int main(){
scanf("%d%d",&n,&m);
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
scanf("%d",&a[i][j]);
}
sort(a[i],a[i]+m);
}
for(int i=0;i<m;i++){
sz=cnt=0;
memset(chk,0,sizeof(chk));
s[sz++]=player{a[0][i],0};
for(int j=1;j<n;j++){
z=lower_bound(a[j],a[j]+m,a[0][i])-a[j];
if(z>0)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |