| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 339214 | ammar2000 | Karte (COCI15_karte) | C++17 | 1 ms | 364 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;
string s;
map <pair <int , char >,int > mp;
map <char ,int > mapp;
int c;
int main()
{
    cin>>s;
    for (int i=0;i<s.length()-2;i+=3)
    {
        int no=(s[i+1]-'0')*10+(s[i+2]-'0');
        mp[{no,s[i]}]++;
        if (mp[{no,s[i]}]>1)
            {
                cout <<"GRESKA";
                return 0;
            }
        mapp[s[i]]++;
    }
    cout <<13-mapp['P']<< " "<<13-mapp['K']<<" "<<13-mapp['H']<<" "<<13-mapp['T'];
    return 0;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
