# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
89461 | duva02 | Bridž (COCI17_bridz) | C++14 | 3 ms | 868 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |