結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
20,276 KB
testcase_01 AC 76 ms
15,036 KB
testcase_02 AC 76 ms
15,080 KB
testcase_03 AC 76 ms
15,140 KB
testcase_04 AC 140 ms
26,872 KB
testcase_05 AC 100 ms
19,364 KB
testcase_06 AC 103 ms
19,736 KB
testcase_07 AC 102 ms
19,936 KB
testcase_08 AC 137 ms
26,664 KB
testcase_09 AC 152 ms
28,312 KB
testcase_10 AC 106 ms
20,452 KB
testcase_11 AC 131 ms
25,080 KB
testcase_12 AC 114 ms
21,340 KB
testcase_13 AC 110 ms
20,980 KB
testcase_14 AC 135 ms
25,876 KB
testcase_15 AC 81 ms
15,572 KB
testcase_16 AC 83 ms
15,672 KB
testcase_17 AC 80 ms
15,352 KB
testcase_18 AC 82 ms
15,732 KB
testcase_19 AC 83 ms
16,116 KB
testcase_20 AC 85 ms
16,368 KB
testcase_21 AC 85 ms
16,496 KB
testcase_22 AC 92 ms
17,524 KB
testcase_23 AC 116 ms
21,724 KB
testcase_24 AC 128 ms
24,624 KB
testcase_25 AC 154 ms
28,280 KB
testcase_26 AC 156 ms
28,324 KB
testcase_27 AC 138 ms
25,128 KB
testcase_28 AC 144 ms
28,256 KB
testcase_29 AC 152 ms
28,488 KB
testcase_30 AC 152 ms
28,196 KB
testcase_31 AC 150 ms
27,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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