116312024-11-02 09:52:49MagyarKendeSZLGFarmula 1python3Accepted 100/10045ms3320 KiB
S = [25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0]
T = int(input())
for _ in range(T):
    N = int(input())
    P = list(map(int, input().split()))
    print("Champion" if
          sum([S[min(x - 1, 10)] for x in P]) >=
          18 * P.count(1) + 25 * (N - P.count(1))
          else "Practice harder")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted14ms2872 KiB
subtask220/20
2Accepted21ms3128 KiB
3Accepted23ms3128 KiB
subtask320/20
4Accepted45ms3204 KiB
5Accepted43ms3128 KiB
6Accepted43ms3128 KiB
7Accepted35ms2928 KiB
subtask460/60
8Accepted43ms3320 KiB
9Accepted45ms2984 KiB
10Accepted43ms3092 KiB
11Accepted32ms3024 KiB