Submission #171616

#TimeUsernameProblemLanguageResultExecution timeMemory
171616ToniBBridž (COCI17_bridz)C++11
50 / 50
10 ms504 KiB
#include <iostream> #include <algorithm> #include <string> using namespace std; int main(){ int n; cin >> n; long long sol = 0; for(int i = 0; i < n; ++i){ for(int j = 0; j < 13; ++j){ char a; cin >> a; if(a == 'A') sol += 4; if(a == 'K') sol += 3; if(a == 'Q') sol += 2; if(a == 'J') sol += 1; } } cout << sol; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...