結果

問題 No.406 鴨等間隔の法則
ユーザー hogeover30hogeover30
提出日時 2016-09-18 23:21:35
言語 Ruby
(3.3.0)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 24,280 KB
最終ジャッジ日時 2023-09-21 18:13:57
合計ジャッジ時間 4,992 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
18,524 KB
testcase_01 AC 77 ms
15,260 KB
testcase_02 AC 77 ms
15,092 KB
testcase_03 AC 76 ms
15,008 KB
testcase_04 AC 133 ms
23,016 KB
testcase_05 AC 99 ms
17,964 KB
testcase_06 AC 99 ms
18,188 KB
testcase_07 AC 100 ms
18,260 KB
testcase_08 AC 130 ms
22,832 KB
testcase_09 AC 143 ms
24,052 KB
testcase_10 AC 102 ms
18,440 KB
testcase_11 AC 123 ms
21,760 KB
testcase_12 AC 108 ms
19,256 KB
testcase_13 AC 106 ms
19,008 KB
testcase_14 AC 129 ms
22,248 KB
testcase_15 AC 79 ms
15,496 KB
testcase_16 AC 79 ms
15,352 KB
testcase_17 AC 77 ms
15,496 KB
testcase_18 AC 80 ms
15,560 KB
testcase_19 AC 81 ms
15,524 KB
testcase_20 AC 82 ms
15,844 KB
testcase_21 AC 82 ms
15,880 KB
testcase_22 AC 89 ms
16,868 KB
testcase_23 AC 110 ms
19,664 KB
testcase_24 AC 122 ms
21,472 KB
testcase_25 AC 143 ms
24,068 KB
testcase_26 AC 147 ms
23,996 KB
testcase_27 AC 131 ms
24,224 KB
testcase_28 AC 132 ms
24,280 KB
testcase_29 AC 147 ms
24,128 KB
testcase_30 AC 146 ms
23,876 KB
testcase_31 AC 139 ms
23,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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