# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713841 | Dulguun88 | Bridž (COCI17_bridz) | C++14 | 1 ms | 212 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;
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;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |