Submission #2859510
Source Code Expand
N = int(input()) a = [int(x) for x in input().split()] color_dict = [0 for x in range(9)] # d[8] for c in a : if c in range(1, 400) : color_dict[0] = 1 elif c in range(400, 800) : color_dict[1] = 1 elif c in range(800, 1200) : color_dict[2] = 1 elif c in range(1200, 1600) : color_dict[3] = 1 elif c in range(1600, 2000) : color_dict[4] = 1 elif c in range(2000, 2400) : color_dict[5] = 1 elif c in range(2400, 2800) : color_dict[6] = 1 elif c in range(2800, 3200) : color_dict[7] = 1 elif c >= 3200 : color_dict[8] += 1 tot = sum(color_dict) rainbow = color_dict[8] if tot > rainbow : print(tot - rainbow, tot) elif tot - rainbow <= rainbow : print(tot - rainbow + 1, tot)
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | pupupupupunta |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 751 Byte |
Status | AC |
Exec Time | 17 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 | 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 |