# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
171616 | ToniB | Bridž (COCI17_bridz) | C++11 | 10 ms | 504 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 <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int n;
cin >> n;
long long sol = 0;
for(int i = 0; i < n; ++i){
for(int j = 0; j < 13; ++j){
char a;
cin >> a;
if(a == 'A') sol += 4;
if(a == 'K') sol += 3;
if(a == 'Q') sol += 2;
if(a == 'J') sol += 1;
}
}
cout << sol;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |