# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165811 | Abdulaziz_Kazim | Karte (COCI15_karte) | C++17 | 7 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<bits/stdc++.h>
using namespace std;
int main()
{
set<string>kart;
map<char,int> dizi;
// freopen("a.gir","r",stdin);
// freopen("a.cik","w",stdout);
string gir;
cin >> gir;
for(int i=0;i<gir.size();i+=3)
{
if(kart.insert(gir.substr(i,3)).second==false)
{
cout << "GRESKA\n";
exit(0);
}
dizi[gir[i]]++;
}
cout << 13-dizi['P'] << " " << 13-dizi['K'] << " " << 13-dizi['H'] << " " << 13-dizi['T'] << " ";
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |