Submission #1589946
Source Code Expand
N = int(input()) a = [int(i) for i in input().split()] rank = [0]*9 ans = [0]*2 for i in range(len(a)): if a[i] < 400: rank[0] = 1 elif a[i] < 800: rank[1] = 1 elif a[i] < 1200: rank[2] = 1 elif a[i] < 1600: rank[3] = 1 elif a[i] < 2000: rank[4] = 1 elif a[i] < 2400: rank[5] = 1 elif a[i] < 2800: rank[6] = 1 elif a[i] < 3200: rank[7] = 1 else: rank[8] += 1 ans[0] = sum(rank) if sum(rank[:8]) == 0: ans[1] = 1 else: ans[1] = sum(rank[:8]) [print(ans[i], end=' ') for i in reversed(range(len(ans)))]
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | satori2573 |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 650 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
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 | AC | 17 ms | 3064 KB |
in2.txt | AC | 17 ms | 3064 KB |
in3.txt | AC | 18 ms | 3064 KB |
in4.txt | AC | 18 ms | 3064 KB |
in5.txt | AC | 18 ms | 3064 KB |
s1.txt | AC | 17 ms | 3064 KB |
s2.txt | AC | 17 ms | 3064 KB |
s3.txt | AC | 17 ms | 3064 KB |