Submission #4066592
Source Code Expand
N = int(input()) a = list(map(int, input(). split())) count = 0 gray = [i for i in a if i < 400] brown = [i for i in a if 400 <= i < 800] green = [i for i in a if 800 <= i < 1200] lblue = [i for i in a if 1200 <= i < 1600] blue = [i for i in a if 1600 <= i < 2000] yellow = [i for i in a if 2000 <= i < 2400] orange = [i for i in a if 2400 <= i < 2800] red = [i for i in a if 2800 <= i < 3200] rainbow = [i for i in a if 3200 <= i] color = [gray, brown, green, lblue, blue, yellow, orange, red] for i in color: if len(i) > 0: count += 1 print('{} {}'.format(count, count + min(8-count, len(rainbow))))
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | knwohar |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 637 Byte |
Status | WA |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | WA | 17 ms | 3064 KB |
in2.txt | AC | 18 ms | 3064 KB |
in3.txt | WA | 18 ms | 3064 KB |
in4.txt | WA | 18 ms | 3064 KB |
in5.txt | AC | 18 ms | 3064 KB |
s1.txt | AC | 18 ms | 3064 KB |
s2.txt | AC | 18 ms | 3064 KB |
s3.txt | AC | 18 ms | 3064 KB |