Submission #713844

#TimeUsernameProblemLanguageResultExecution timeMemory
713844Dulguun88Bridž (COCI17_bridz)C++14
50 / 50
5 ms376 KiB
#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 timeMemoryGrader output
Fetching results...