結果

問題 No.1285 ゴミ捨て
ユーザー simansiman
提出日時 2020-11-29 21:07:30
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 102 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 11,364 KB
実行使用メモリ 17,856 KB
最終ジャッジ日時 2023-10-11 02:37:33
合計ジャッジ時間 5,771 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,084 KB
testcase_01 AC 86 ms
15,240 KB
testcase_02 AC 84 ms
15,136 KB
testcase_03 AC 83 ms
15,288 KB
testcase_04 AC 83 ms
15,168 KB
testcase_05 AC 85 ms
15,176 KB
testcase_06 AC 83 ms
15,332 KB
testcase_07 WA -
testcase_08 AC 88 ms
15,092 KB
testcase_09 AC 125 ms
16,444 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 102 ms
15,672 KB
testcase_17 AC 102 ms
15,824 KB
testcase_18 AC 102 ms
15,552 KB
testcase_19 WA -
testcase_20 AC 100 ms
15,468 KB
testcase_21 AC 109 ms
15,660 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
A = N.times.map { gets.to_i }.sort

puts A.each_cons(2).count { |a, b| a + 1 >= b } + 1
0