| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 100975 | KLPP | Wand (COCI19_wand) | C++14 | 53 ms | 2304 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long int lld;
int main(){
int n,m;
scanf("%d %d",&n,&m);
int victory[n];
int fail[n];
for(int i=0;i<n;i++){
victory[i]=0;
fail[i]=0;
}
for(int i=0;i<m;i++){
int x,y;
scanf("%d %d",&x,&y);
x--;y--;
victory[x]++;
fail[y]++;
}
for(int i=0;i<n;i++){
if(victory[i]>0 || (victory[i]+fail[i]==0)){
cout<<1;
}else cout<<0;
}cout<<endl;
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
