# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
154277 | denmircea | Karte (COCI15_karte) | C++14 | 3 ms | 376 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 <iostream>
using namespace std;
int i,n,ok,x,nr,d,y,j,k,v[1001];
short fr[200][30];
int sum[200];
string s;
int main(){
cin>>s;
for(i=0;s[i]!=0;i+=3){
nr=(s[i+1]-48)*10+ s[i+2]-48;
fr[s[i]][nr]++;
if(fr[s[i]][nr]>1){
cout<<"GRESKA";
return 0;
}
sum[s[i]]++;
}
cout<<13-sum['P']<<" "<<13-sum['K']<<" "<<13-sum['H']<<" "<<13-sum['T'];
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |