제출 #98541

#제출 시각아이디문제언어결과실행 시간메모리
98541dalgerokBridž (COCI17_bridz)C++17
50 / 50
4 ms384 KiB
#include<bits/stdc++.h>
using namespace std;




int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int test;
    cin >> test;
    map < char, int > q;
    while(test--){
        string s;
        cin >> s;
        for(auto it : s){
            q[it] += 1;
        }
    }
    cout << q['A'] * 4 + q['K'] * 3 + q['Q'] * 2 + q['J'] * 1 << "\n";
}
#Verdict Execution timeMemoryGrader output
Fetching results...