Submission #1991958


Source Code Expand

N=int(input())

S=list(map(int, input().split()))

T=[0]*9
for i in range(N):
    if S[i] < 400:
        T[0]+=1
    elif S[i] < 800:
        T[1]+=1
    elif S[i] < 1200:
        T[2]+=1
    elif S[i] < 1600:
        T[3]+=1
    elif S[i] < 2000:
        T[4]+=1
    elif S[i] < 2400:
        T[5]+=1
    elif S[i] < 2800:
        T[6]+=1
    elif S[i] < 3200:
        T[7]+=1
    else:
        T[8]+=1

K=0
for i in range(8):
    if T[i] >= 1:
        K+=1

if K!=8:
    print(K,K+T[8])
else:
    print(K,K)

Submission Info

Submission Time
Task C - Colorful Leaderboard
User Tosachi
Language Python (3.4.3)
Score 0
Code Size 544 Byte
Status WA
Exec Time 17 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 3
AC × 6
WA × 2
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
in1.txt WA 17 ms 3064 KB
in2.txt AC 17 ms 3064 KB
in3.txt WA 17 ms 3064 KB
in4.txt AC 17 ms 3064 KB
in5.txt AC 17 ms 3064 KB
s1.txt AC 17 ms 3064 KB
s2.txt AC 17 ms 3064 KB
s3.txt AC 17 ms 3064 KB