結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
17,152 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 123 ms
16,256 KB
testcase_06 AC 123 ms
16,640 KB
testcase_07 AC 125 ms
16,512 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 132 ms
17,024 KB
testcase_11 AC 165 ms
22,144 KB
testcase_12 AC 139 ms
18,432 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 95 ms
12,544 KB
testcase_16 RE -
testcase_17 AC 98 ms
12,416 KB
testcase_18 AC 103 ms
12,928 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 107 ms
13,824 KB
testcase_22 WA -
testcase_23 AC 143 ms
18,816 KB
testcase_24 WA -
testcase_25 AC 183 ms
25,088 KB
testcase_26 RE -
testcase_27 AC 173 ms
25,216 KB
testcase_28 AC 174 ms
25,088 KB
testcase_29 RE -
testcase_30 WA -
testcase_31 AC 181 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