結果

問題 No.406 鴨等間隔の法則
ユーザー mmmpppmmmppp
提出日時 2017-02-16 03:57:37
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 91 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 25,344 KB
最終ジャッジ日時 2024-11-07 10:16:47
合計ジャッジ時間 7,044 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
17,280 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 126 ms
16,256 KB
testcase_06 AC 124 ms
16,640 KB
testcase_07 AC 127 ms
16,768 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 131 ms
17,280 KB
testcase_11 AC 164 ms
22,272 KB
testcase_12 AC 137 ms
18,560 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 96 ms
12,800 KB
testcase_16 RE -
testcase_17 AC 96 ms
12,416 KB
testcase_18 AC 98 ms
13,056 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 106 ms
13,568 KB
testcase_22 WA -
testcase_23 AC 138 ms
18,944 KB
testcase_24 WA -
testcase_25 AC 181 ms
25,344 KB
testcase_26 RE -
testcase_27 AC 172 ms
25,344 KB
testcase_28 AC 176 ms
25,216 KB
testcase_29 RE -
testcase_30 WA -
testcase_31 AC 178 ms
24,576 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;a=eval("_="+`tr " " ,`).sort.each_cons(2).map{|i,j|j-i}|[];puts a[1]||a==[0]?:NO: :YES
0