Submission #383142

#TimeUsernameProblemLanguageResultExecution timeMemory
383142IwanttobreakfreeBridž (COCI17_bridz)C++98
50 / 50
4 ms492 KiB
#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 timeMemoryGrader output
Fetching results...