結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
18,596 KB
testcase_01 AC 82 ms
15,020 KB
testcase_02 AC 80 ms
15,096 KB
testcase_03 AC 84 ms
15,148 KB
testcase_04 AC 139 ms
23,016 KB
testcase_05 AC 104 ms
17,836 KB
testcase_06 AC 106 ms
18,248 KB
testcase_07 AC 107 ms
18,168 KB
testcase_08 AC 136 ms
22,728 KB
testcase_09 AC 150 ms
23,924 KB
testcase_10 AC 108 ms
18,372 KB
testcase_11 AC 130 ms
21,808 KB
testcase_12 AC 111 ms
19,120 KB
testcase_13 AC 110 ms
18,984 KB
testcase_14 AC 132 ms
22,028 KB
testcase_15 AC 82 ms
15,552 KB
testcase_16 AC 84 ms
15,320 KB
testcase_17 AC 83 ms
15,548 KB
testcase_18 AC 85 ms
15,440 KB
testcase_19 AC 84 ms
15,672 KB
testcase_20 AC 88 ms
15,740 KB
testcase_21 AC 88 ms
15,964 KB
testcase_22 AC 92 ms
16,972 KB
testcase_23 AC 115 ms
19,656 KB
testcase_24 AC 125 ms
21,336 KB
testcase_25 AC 151 ms
24,224 KB
testcase_26 AC 151 ms
24,184 KB
testcase_27 AC 137 ms
24,028 KB
testcase_28 AC 138 ms
24,260 KB
testcase_29 AC 147 ms
24,124 KB
testcase_30 AC 146 ms
23,864 KB
testcase_31 AC 144 ms
23,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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