# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
23077 | model_code | Bridž (COCI17_bridz) | C++11 | 3 ms | 2020 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>
using namespace std;
int n;
int points;
string s;
string rate = "JQKA";
int find(char c){
for (int i=0;i<4;i++){
if (rate[i]==c){
return i+1;
}
}
return 0;
}
int main (void){
cin >> n;
for (int i=0;i<n;i++){
cin >> s;
for (int j=0;j<13;j++){
points+=find(s[j]);
}
}
cout << points << endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |