# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
86269 | MatesV13 | Bridž (COCI17_bridz) | C++11 | 3 ms | 732 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;
long long n, sum;
string word;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n;
for(int i=0;i<n;i++){
cin >> word;
for(int j=0;j<13;j++){
if (word[j]=='X') continue;
if (word[j]=='J') {sum = sum + 1; continue;}
if (word[j]=='Q') {sum = sum + 2; continue;}
if (word[j]=='K') {sum = sum + 3; continue;}
if (word[j]=='A') {sum = sum + 4; continue;}
}
}
cout << sum;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |