結果

問題 No.1285 ゴミ捨て
ユーザー yuruhiyayuruhiya
提出日時 2021-01-31 17:12:46
言語 Ruby
(3.3.0)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 50 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 11,460 KB
実行使用メモリ 17,564 KB
最終ジャッジ日時 2023-08-19 07:29:18
合計ジャッジ時間 3,772 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,000 KB
testcase_01 AC 78 ms
15,084 KB
testcase_02 AC 79 ms
15,080 KB
testcase_03 AC 80 ms
15,076 KB
testcase_04 AC 81 ms
15,112 KB
testcase_05 AC 79 ms
15,272 KB
testcase_06 AC 80 ms
14,984 KB
testcase_07 AC 133 ms
17,508 KB
testcase_08 AC 83 ms
15,276 KB
testcase_09 AC 104 ms
16,440 KB
testcase_10 AC 127 ms
17,392 KB
testcase_11 AC 125 ms
17,192 KB
testcase_12 AC 112 ms
16,544 KB
testcase_13 AC 111 ms
16,480 KB
testcase_14 AC 132 ms
17,476 KB
testcase_15 AC 118 ms
16,940 KB
testcase_16 AC 91 ms
15,552 KB
testcase_17 AC 91 ms
15,632 KB
testcase_18 AC 90 ms
15,564 KB
testcase_19 AC 102 ms
16,152 KB
testcase_20 AC 91 ms
15,564 KB
testcase_21 AC 93 ms
15,804 KB
testcase_22 AC 138 ms
17,540 KB
testcase_23 AC 137 ms
17,564 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
a=-1
p$<.map(&:to_i).sort.any?{a+1==a=_1}?2:1
0