結果

問題 No.406 鴨等間隔の法則
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-07 18:45:23
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 108 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 25,968 KB
最終ジャッジ日時 2023-09-29 20:45:00
合計ジャッジ時間 5,158 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
18,168 KB
testcase_01 AC 80 ms
15,248 KB
testcase_02 AC 79 ms
15,240 KB
testcase_03 WA -
testcase_04 AC 128 ms
22,592 KB
testcase_05 AC 98 ms
17,832 KB
testcase_06 AC 99 ms
18,004 KB
testcase_07 AC 100 ms
18,060 KB
testcase_08 AC 126 ms
22,532 KB
testcase_09 AC 139 ms
23,352 KB
testcase_10 AC 101 ms
18,356 KB
testcase_11 AC 120 ms
21,352 KB
testcase_12 AC 109 ms
19,096 KB
testcase_13 AC 104 ms
18,832 KB
testcase_14 AC 148 ms
21,768 KB
testcase_15 WA -
testcase_16 AC 81 ms
15,560 KB
testcase_17 AC 80 ms
15,444 KB
testcase_18 AC 81 ms
15,276 KB
testcase_19 AC 84 ms
15,568 KB
testcase_20 AC 88 ms
16,240 KB
testcase_21 AC 84 ms
15,852 KB
testcase_22 AC 93 ms
16,960 KB
testcase_23 AC 107 ms
19,564 KB
testcase_24 AC 140 ms
21,416 KB
testcase_25 AC 138 ms
23,352 KB
testcase_26 AC 165 ms
25,968 KB
testcase_27 WA -
testcase_28 AC 128 ms
23,376 KB
testcase_29 AC 164 ms
25,704 KB
testcase_30 AC 163 ms
25,648 KB
testcase_31 AC 140 ms
23,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
puts (K = gets.split.map(&:to_i).sort).each_cons(2).all?{|x| x[1] - x[0] == K[1] - K[0]} ? "YES" : "NO"
0