# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165589 | itiam | Bridž (COCI17_bridz) | C++11 | 8 ms | 508 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,uk=0;
string A;
char x;
cin >> N;
for (int i=0;i<N;i++){
cin >> A;
for (int j=0;j<A.length();j++){
x=A[j];
if (x!='X'){
//cout << "haj\n";
if (x=='J') uk+=1;
else if (x=='Q') uk+=2;
else if (x=='K') uk+=3;
else if (x=='A') uk+=4;
}
}
}
cout << uk;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |