Submission #1991088
Source Code Expand
n = int(input()) l = list(map(int, input().split())) found = set() f = 0 for i in l: if i <= 399: found.add("灰色") elif i <= 799: found.add("茶色") elif i <= 1199: found.add("緑色") elif i <= 1599: found.add("水色") elif i <= 1999: found.add("青色") elif i <= 2399: found.add("黄色") elif i <= 2799: found.add("橙色") elif i <= 3199: found.add("赤色") else: f += 1 if len(found) == 0: print(1, min(i, 8)) elif len(found) + f > 8: print(len(found), 8) else: print(len(found), len(found) + f)
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | turner |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 598 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 | 18 ms | 3064 KB |
in2.txt | AC | 17 ms | 3064 KB |
in3.txt | WA | 17 ms | 3064 KB |
in4.txt | WA | 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 |