| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 61650 | win11905 | Bridž (COCI17_bridz) | C++11 | 5 ms | 968 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 sum = 0;
char inp[105], A[] = "XJQKA";
int c[256];
int main() {
    for(int i = 0; i < 5; ++i) c[A[i]] = i;
    int T; scanf("%d", &T);
    while(T--) {
        scanf("%s", inp);
        for(int i = 0; i < 13; ++i) sum += c[inp[i]];
    }
    printf("%d\n", sum);
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
