# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
98541 | dalgerok | Bridž (COCI17_bridz) | C++17 | 4 ms | 384 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(0);cin.tie(0);cout.tie(0);
int test;
cin >> test;
map < char, int > q;
while(test--){
string s;
cin >> s;
for(auto it : s){
q[it] += 1;
}
}
cout << q['A'] * 4 + q['K'] * 3 + q['Q'] * 2 + q['J'] * 1 << "\n";
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |