# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1092802 | vibeslayer | Bridž (COCI17_bridz) | Cpython 3 | 22 ms | 2908 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.
n = int(input())
val = {
'A': 4,
'K': 3,
'Q': 2,
'J': 1
}
tot = 0
for i in range(n):
s = input()
for c in s:
if c in val:
tot += val[c]
print(tot)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |