# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
713844 |
2023-03-23T06:03:44 Z |
Dulguun88 |
Bridž (COCI17_bridz) |
C++14 |
|
5 ms |
376 KB |
#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 |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
304 KB |
Output is correct |
5 |
Correct |
0 ms |
296 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
2 ms |
212 KB |
Output is correct |
9 |
Correct |
4 ms |
352 KB |
Output is correct |
10 |
Correct |
5 ms |
376 KB |
Output is correct |