# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
222357 | rainy | ACM (COCI19_acm) | C++14 | 11 ms | 368 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int N,M;
char tn[25];
char mt[25]="NijeZivotJedanACM";
int ans;
int main(){
scanf("%d%d",&N,&M);
for(int i=0;i<N+1;i++){
scanf("%s",&tn);
if(strcmp(tn,mt)==0&&i!=N)ans=i+1;
// else printf("|%s|\n|%s|",tn,mt);
char t='a';
while(t!='\n')scanf("%c",&t);
}
printf("%d\n",ans);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |