Submission #88711

#TimeUsernameProblemLanguageResultExecution timeMemory
88711AntonioDakiBridž (COCI17_bridz)C++14
50 / 50
3 ms880 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); long long n, m = 0; cin >> n; string s; for(long i = 0; i < n; ++i){ cin >> s; for(int j = 0; j < 13; ++j){ if(s[j] == 65) m += 4; if(s[j] == 75) m += 3; if(s[j] == 81) m += 2; if(s[j] == 74) m += 1; } } cout << m; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...