Submission #89461

#TimeUsernameProblemLanguageResultExecution timeMemory
89461duva02Bridž (COCI17_bridz)C++14
50 / 50
3 ms868 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, i, A = 4, K = 3, Q = 2, J = 1, X =0,br = 0, j; string k; cin >> n; for(i = 0;i < n;i++){ cin >> k; for( j = 0; j < 13;j++){ if(k[j] == 65) br += A; if(k[j] == 75) br += K; if(k[j] == 81) br += Q; if(k[j] == 74) br += J; } } cout << br; return 0; }

Compilation message (stderr)

bridz.cpp: In function 'int main()':
bridz.cpp:9:41: warning: unused variable 'X' [-Wunused-variable]
   int n, i, A = 4, K = 3, Q = 2, J = 1, X =0,br = 0, j;
                                         ^
#Verdict Execution timeMemoryGrader output
Fetching results...