Submission #1563403
Source Code Expand
eval"N,*A="+`dd`.split*?,;A.sort!;p N.times.map{|r|$.+=1while A[r]-A[$.]>2;r-$.}.max+1
Submission Info
Submission Time | |
---|---|
Task | C - Together |
User | letranger |
Language | Ruby (2.3.3) |
Score | 300 |
Code Size | 86 Byte |
Status | AC |
Exec Time | 225 ms |
Memory | 21744 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 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 | 225 ms | 2040 KB |
0_001.txt | AC | 8 ms | 2044 KB |
0_002.txt | AC | 8 ms | 2044 KB |
1_003.txt | AC | 8 ms | 2044 KB |
1_004.txt | AC | 92 ms | 20468 KB |
1_005.txt | AC | 106 ms | 21680 KB |
1_006.txt | AC | 108 ms | 21740 KB |
1_007.txt | AC | 119 ms | 21744 KB |
1_008.txt | AC | 123 ms | 21692 KB |