제출 #1301868

#제출 시각아이디문제언어결과실행 시간메모리
1301868Sir_Ahmed_ImranBridž (COCI17_bridz)C++20
50 / 50
2 ms584 KiB
// 01001100 01001111 01010100 01000001 \\ // \\ // ╦ ╔═╗╔╦╗╔═╗ \\ // ║ ║ ║ ║ ╠═╣ \\ // ╩═╝╚═╝ ╩ ╩ ╩ \\ // \\ // 01001100 01001111 01010100 01000001 \\ #include <bits/stdc++.h> using namespace std; #define nl '\n' #define ff first #define ss second #define ll long long #define ld long double #define terminator main #define pll pair<ll,ll> #define add insert #define append push_back #define pii pair<int,int> #define all(x) (x).begin(),(x).end() #define L0TA ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) const int N = 1e6 + 6; void solve(){ int n; string s; cin >> n; map<char, int> x; x['A'] = 4; x['K'] = 3; x['Q'] = 2; x['J'] = 1; x['X'] = 0; int ans = 0; for(int i = 0; i < n; i++){ cin >> s; for(auto & j : s) ans += x[j]; } cout << ans << nl; } int terminator(){ L0TA; int T = 1; //cin >> T; while(T--) solve(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...