# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
383142 | Iwanttobreakfree | Bridž (COCI17_bridz) | C++98 | 4 ms | 492 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(){
long long int n,sum=0;
string str;
cin>>n;
while(n--){
cin>>str;
for(int i=0;i<13;i++){
if(str[i]=='A')sum+=4;
if(str[i]=='K')sum+=3;
if(str[i]=='Q')sum+=2;
if(str[i]=='J')sum+=1;
}
}
cout<<sum;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |