# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
384620 | vulpes | Karte (COCI15_karte) | C++17 | 2 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;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
string s; cin >> s;
map<string,bool> m;
for (int i = 0; i < s.size(); i += 3) {
if (m[s.substr(i, 3)]) {
return cout << "GRESKA" << endl, 0;
}
m[s.substr(i, 3)] = true;
}
vector<char> a = {'P', 'K', 'H', 'T'};
for (char i : a) {
int c = count(s.begin(), s.end(), i);
cout << 13 - c << " ";
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |