CSES - Putka Open 2020 – 2/5 - Results
Submission details
Task:Kortit
Sender:elcaroak
Submission time:2020-09-26 20:55:14 +0300
Language:Python3 (CPython3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
Test results
testverdicttimegroup
#10.03 s1, 2details
#20.06 s2details

Code

for _ in range(int(input())):
    points=0
    enemyCards = [i+1 for i in range(int(input()))]
    myCards = [int(i) for i in input().split()]
    [enemyCards.remove(i) for i in myCards]
    for i in myCards:
        for j in enemyCards:
            if i>j:
                points+=1
                break
        
    print(points)

Test details

Test 1

Group: 1, 2

Verdict:

input
1000
2
1
6
2 4 5
...

correct output
0
2
0
2
1
...

user output
0
3
0
4
3
...
Truncated

Test 2

Group: 2

Verdict:

input
1000
70
56 23 58 70 2 57 27 61 47 3 42...

correct output
30
15
1
38
29
...

user output
31
16
1
48
35
...
Truncated