# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
82795 | xiaowuc1 | Karte (COCI15_karte) | C++14 | 3 ms | 792 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;
typedef long long ll;
string s;
int ret[256];
int main() {
cin >> s;
ret['P'] = 13;
ret['K'] = 13;
ret['H'] = 13;
ret['T'] = 13;
set<string> ss;
for(int i = 0; i < s.length(); i += 3) {
if(ss.count(s.substr(i, 3))) {
printf("GRESKA\n");
return 0;
}
ss.insert(s.substr(i, 3));
ret[s[i]]--;
}
printf("%d %d %d %d\n", ret['P'], ret['K'], ret['H'], ret['T']);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |