結果

問題 No.406 鴨等間隔の法則
ユーザー cielciel
提出日時 2016-08-05 23:17:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 25,472 KB
最終ジャッジ日時 2023-09-21 17:50:05
合計ジャッジ時間 5,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
19,108 KB
testcase_01 AC 83 ms
15,304 KB
testcase_02 AC 77 ms
15,152 KB
testcase_03 AC 77 ms
15,236 KB
testcase_04 AC 144 ms
24,304 KB
testcase_05 AC 104 ms
18,536 KB
testcase_06 AC 106 ms
18,692 KB
testcase_07 AC 106 ms
18,944 KB
testcase_08 AC 143 ms
24,052 KB
testcase_09 AC 156 ms
25,236 KB
testcase_10 AC 109 ms
18,900 KB
testcase_11 AC 135 ms
22,188 KB
testcase_12 AC 115 ms
19,904 KB
testcase_13 AC 112 ms
19,516 KB
testcase_14 AC 137 ms
22,616 KB
testcase_15 AC 80 ms
15,420 KB
testcase_16 AC 83 ms
15,604 KB
testcase_17 AC 79 ms
15,496 KB
testcase_18 AC 82 ms
15,692 KB
testcase_19 AC 83 ms
15,580 KB
testcase_20 AC 87 ms
16,152 KB
testcase_21 AC 86 ms
16,116 KB
testcase_22 AC 92 ms
16,952 KB
testcase_23 AC 118 ms
19,996 KB
testcase_24 AC 130 ms
21,672 KB
testcase_25 AC 159 ms
25,388 KB
testcase_26 AC 158 ms
25,136 KB
testcase_27 AC 146 ms
25,228 KB
testcase_28 AC 149 ms
25,472 KB
testcase_29 AC 159 ms
25,152 KB
testcase_30 AC 156 ms
25,008 KB
testcase_31 AC 157 ms
25,064 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;a=gets.split.map(&:to_i).sort.each_cons(2).map{|x,y|y-x}.uniq;puts a.size<2&&a[0]>0?:YES: :NO
0