Submission #1777503
Source Code Expand
from sys import stdin, stdout def readLine_int_list(): return list(map(int, stdin.readline().split())) def main(): n = input() a = readLine_int_list() c = [] _c = [] for i in a: rank = i // 400 if rank > 7: _c.append(rank) else: c.append(rank) p = len(set(c)) print(max(1, p), p + len(_c)) if __name__ == "__main__": main()
Submission Info
Submission Time | |
---|---|
Task | C - Colorful Leaderboard |
User | T_M |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 441 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 3060 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 | 3060 KB |
in2.txt | AC | 18 ms | 3060 KB |
in3.txt | AC | 18 ms | 2940 KB |
in4.txt | AC | 18 ms | 2940 KB |
in5.txt | AC | 17 ms | 3060 KB |
s1.txt | AC | 17 ms | 3060 KB |
s2.txt | AC | 17 ms | 3060 KB |
s3.txt | AC | 17 ms | 2940 KB |