Submission #2251306
Source Code Expand
read_line a = read_line.split.map(&.to_i) c = Array.new(100001, 0) a.each do |v| c[v] += 1 c[v + 1] += 1 c[v + 2] += 1 end puts c.max
Submission Info
Submission Time | |
---|---|
Task | C - Together |
User | tomerun |
Language | Crystal (0.20.5) |
Score | 0 |
Code Size | 149 Byte |
Status | RE |
Exec Time | 50 ms |
Memory | 8956 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 | 3 ms | 1020 KB |
0_001.txt | AC | 3 ms | 1020 KB |
0_002.txt | RE | 13 ms | 1660 KB |
1_003.txt | RE | 13 ms | 1660 KB |
1_004.txt | AC | 35 ms | 7420 KB |
1_005.txt | RE | 50 ms | 8060 KB |
1_006.txt | RE | 50 ms | 8444 KB |
1_007.txt | RE | 50 ms | 8956 KB |
1_008.txt | AC | 48 ms | 7932 KB |