結果

問題 No.406 鴨等間隔の法則
ユーザー yuruhiyayuruhiya
提出日時 2021-04-18 20:24:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 76 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 28,468 KB
最終ジャッジ日時 2023-09-17 08:04:48
合計ジャッジ時間 5,489 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
20,348 KB
testcase_01 AC 86 ms
15,132 KB
testcase_02 AC 83 ms
15,292 KB
testcase_03 AC 84 ms
15,048 KB
testcase_04 AC 149 ms
26,980 KB
testcase_05 AC 109 ms
19,368 KB
testcase_06 AC 112 ms
19,632 KB
testcase_07 AC 112 ms
20,016 KB
testcase_08 AC 147 ms
26,460 KB
testcase_09 AC 164 ms
28,212 KB
testcase_10 AC 112 ms
20,504 KB
testcase_11 AC 137 ms
25,040 KB
testcase_12 AC 118 ms
21,496 KB
testcase_13 AC 116 ms
21,120 KB
testcase_14 AC 140 ms
25,968 KB
testcase_15 AC 87 ms
15,628 KB
testcase_16 AC 87 ms
15,772 KB
testcase_17 AC 84 ms
15,416 KB
testcase_18 AC 86 ms
15,664 KB
testcase_19 AC 86 ms
15,836 KB
testcase_20 AC 88 ms
16,324 KB
testcase_21 AC 89 ms
16,440 KB
testcase_22 AC 96 ms
17,684 KB
testcase_23 AC 122 ms
21,740 KB
testcase_24 AC 135 ms
24,692 KB
testcase_25 AC 160 ms
28,340 KB
testcase_26 AC 160 ms
28,468 KB
testcase_27 AC 144 ms
25,152 KB
testcase_28 AC 148 ms
28,448 KB
testcase_29 AC 158 ms
28,208 KB
testcase_30 AC 162 ms
28,220 KB
testcase_31 AC 156 ms
27,640 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,*x=[*$<][1].split.map(&:to_i).sort;a-=b;puts x.map{b-=a}==x|[]?:YES:"NO"
0