# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713844 | Dulguun88 | Bridž (COCI17_bridz) | C++14 | 5 ms | 376 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 main(){
int n,cnt=0;
cin>>n;
for(int i=1 ; i<=n;i++){
for(int j=1;j<=13;j++){
char c;
cin>>c;
if(c=='A') cnt+=4;
else{
if(c=='K') cnt+=3;
else{
if(c=='Q') cnt+=2;
else{
if(c=='J') cnt++;
}
}
}
}
}
cout<<cnt;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |