Submission #1811553
Source Code Expand
#!/usr/bin/env python base=0 counter=0 min_counter=0 scores=[3200, 2800, 2400, 2000, 1600, 1200, 800, 400, 1] N=int(input()) a=[ int(i) for i in input().split() ] a.sort() for i in range(1, len(scores)): for j in range(0, N): if(scores[i-1]>a[j] and a[j]>=scores[i]): # print("scores[i]", scores[i], "a[j]", a[j]) counter+=1 break; for i in range(0, len(a)): if(a[i]>=3200): min_counter+=1 if(len(set(a))==1 and a[0]>=3200): base+=1 print(base+counter, counter+min_counter)
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | whitebacker |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 568 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 | 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 |