Submission #1736596
Source Code Expand
#C問題 together N = int(input()) a = list(map(int,input().split(" "))) minval = min(a) maxval = max(a) a2 = [] ans = [] for j in a: for i in [-1,0,1]: a2.append(i+j) for i in range(minval-1,maxval+2): ans.append(a2.count(i)) print(max(ans))
Submission Info
Submission Time | |
---|---|
Task | C - Together |
User | banboooo044 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 275 Byte |
Status | TLE |
Exec Time | 2105 ms |
Memory | 21668 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt, 0_002.txt |
All | 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 18 ms | 2940 KB |
0_001.txt | AC | 18 ms | 2940 KB |
0_002.txt | AC | 18 ms | 2940 KB |
1_003.txt | AC | 44 ms | 3864 KB |
1_004.txt | AC | 99 ms | 6948 KB |
1_005.txt | AC | 125 ms | 19536 KB |
1_006.txt | AC | 133 ms | 19536 KB |
1_007.txt | AC | 544 ms | 19540 KB |
1_008.txt | TLE | 2105 ms | 21668 KB |