답안 #922168

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
922168 2024-02-05T07:57:21 Z Whisper Automobil (COCI17_automobil) C++17
0 / 100
12 ms 448 KB
#include <bits/stdc++.h>
using namespace std;
int main(){
    int Test; cin >> Test;
    long long ans = 0;
    for ( int i = 1 ; i <= Test ; i++ ){
        map< char , int > mp;
        string s; cin >> s;
        for ( auto& x : s ){
            mp[x]++;
        }
        for ( auto& [ x , y] : mp ){
            if ( x == 'A') ans += 4 * y;
            if ( x == 'K') ans += 3 * y;
            if ( x == 'Q') ans += 2 * y;
            if ( x == 'J') ans += y;
        }
    }
    cout << ans;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 0 ms 448 KB Output isn't correct
5 Incorrect 1 ms 348 KB Output isn't correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Incorrect 1 ms 444 KB Output isn't correct
8 Incorrect 1 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 1 ms 348 KB Output isn't correct
11 Incorrect 3 ms 348 KB Output isn't correct
12 Incorrect 8 ms 448 KB Output isn't correct
13 Incorrect 1 ms 348 KB Output isn't correct
14 Incorrect 8 ms 348 KB Output isn't correct
15 Incorrect 7 ms 348 KB Output isn't correct
16 Incorrect 10 ms 344 KB Output isn't correct
17 Incorrect 11 ms 348 KB Output isn't correct
18 Incorrect 11 ms 348 KB Output isn't correct
19 Incorrect 11 ms 348 KB Output isn't correct
20 Incorrect 12 ms 348 KB Output isn't correct