Submission #2251314


Source Code Expand

read_line
a = read_line.split.map(&.to_i)
c = Array.new(100002, 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 300
Code Size 149 Byte
Status AC
Exec Time 50 ms
Memory 8444 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 9
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 AC 3 ms 1020 KB
1_003.txt AC 3 ms 1020 KB
1_004.txt AC 35 ms 5756 KB
1_005.txt AC 48 ms 8444 KB
1_006.txt AC 50 ms 8188 KB
1_007.txt AC 49 ms 7804 KB
1_008.txt AC 48 ms 8444 KB