結果

問題 No.406 鴨等間隔の法則
ユーザー hogeover30hogeover30
提出日時 2017-02-06 05:26:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 77 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 28,420 KB
最終ジャッジ日時 2023-09-21 18:22:36
合計ジャッジ時間 5,287 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
20,332 KB
testcase_01 AC 78 ms
15,148 KB
testcase_02 AC 79 ms
15,084 KB
testcase_03 AC 82 ms
15,140 KB
testcase_04 AC 144 ms
26,868 KB
testcase_05 AC 105 ms
19,324 KB
testcase_06 AC 106 ms
19,832 KB
testcase_07 AC 106 ms
19,856 KB
testcase_08 AC 142 ms
26,548 KB
testcase_09 AC 155 ms
28,152 KB
testcase_10 AC 108 ms
20,232 KB
testcase_11 AC 135 ms
24,996 KB
testcase_12 AC 117 ms
21,300 KB
testcase_13 AC 113 ms
21,188 KB
testcase_14 AC 138 ms
25,904 KB
testcase_15 AC 82 ms
15,552 KB
testcase_16 AC 85 ms
15,772 KB
testcase_17 AC 82 ms
15,564 KB
testcase_18 AC 83 ms
15,612 KB
testcase_19 AC 84 ms
15,896 KB
testcase_20 AC 88 ms
16,232 KB
testcase_21 AC 86 ms
16,316 KB
testcase_22 AC 92 ms
17,692 KB
testcase_23 AC 118 ms
21,920 KB
testcase_24 AC 129 ms
24,644 KB
testcase_25 AC 156 ms
28,160 KB
testcase_26 AC 157 ms
28,268 KB
testcase_27 AC 141 ms
25,072 KB
testcase_28 AC 146 ms
28,288 KB
testcase_29 AC 158 ms
28,420 KB
testcase_30 AC 157 ms
28,068 KB
testcase_31 AC 157 ms
27,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;a,b,*x=gets.split.map(&:to_i).sort;a-=b;puts x.map{b-=a}==x|[]?:YES: :NO
0