結果

問題 No.406 鴨等間隔の法則
ユーザー hogeover30hogeover30
提出日時 2017-02-06 05:04:27
言語 Ruby
(3.3.0)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 80 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 11,196 KB
実行使用メモリ 24,160 KB
最終ジャッジ日時 2023-09-21 18:22:20
合計ジャッジ時間 5,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
18,580 KB
testcase_01 AC 83 ms
15,088 KB
testcase_02 AC 76 ms
15,280 KB
testcase_03 AC 77 ms
15,104 KB
testcase_04 AC 133 ms
22,900 KB
testcase_05 AC 99 ms
17,920 KB
testcase_06 AC 100 ms
18,248 KB
testcase_07 AC 100 ms
18,208 KB
testcase_08 AC 131 ms
22,796 KB
testcase_09 AC 143 ms
24,136 KB
testcase_10 AC 102 ms
18,596 KB
testcase_11 AC 123 ms
21,708 KB
testcase_12 AC 110 ms
19,140 KB
testcase_13 AC 107 ms
19,084 KB
testcase_14 AC 127 ms
21,992 KB
testcase_15 AC 79 ms
15,356 KB
testcase_16 AC 79 ms
15,392 KB
testcase_17 AC 78 ms
15,396 KB
testcase_18 AC 79 ms
15,396 KB
testcase_19 AC 81 ms
15,576 KB
testcase_20 AC 84 ms
15,836 KB
testcase_21 AC 84 ms
15,980 KB
testcase_22 AC 88 ms
16,936 KB
testcase_23 AC 110 ms
19,728 KB
testcase_24 AC 123 ms
21,312 KB
testcase_25 AC 145 ms
24,128 KB
testcase_26 AC 145 ms
24,160 KB
testcase_27 AC 134 ms
24,008 KB
testcase_28 AC 134 ms
24,072 KB
testcase_29 AC 145 ms
24,036 KB
testcase_30 AC 145 ms
24,060 KB
testcase_31 AC 144 ms
23,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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