結果

問題 No.2024 Xer
ユーザー kotatsugamekotatsugame
提出日時 2023-07-29 13:53:27
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 98 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 31,744 KB
最終ジャッジ日時 2024-04-16 19:51:00
合計ジャッジ時間 8,820 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
12,288 KB
testcase_01 AC 87 ms
12,160 KB
testcase_02 AC 82 ms
12,288 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 85 ms
12,032 KB
testcase_07 AC 259 ms
30,976 KB
testcase_08 AC 232 ms
31,616 KB
testcase_09 AC 190 ms
27,648 KB
testcase_10 AC 235 ms
31,744 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 127 ms
18,048 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 145 ms
21,248 KB
testcase_21 AC 200 ms
27,648 KB
testcase_22 AC 190 ms
27,520 KB
testcase_23 AC 198 ms
27,648 KB
testcase_24 AC 191 ms
27,648 KB
testcase_25 AC 84 ms
12,288 KB
testcase_26 AC 91 ms
12,160 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 85 ms
12,160 KB
testcase_30 AC 88 ms
12,288 KB
testcase_31 AC 92 ms
12,416 KB
testcase_32 WA -
testcase_33 AC 89 ms
12,288 KB
testcase_34 AC 84 ms
12,288 KB
testcase_35 AC 84 ms
12,160 KB
testcase_36 AC 88 ms
12,288 KB
testcase_37 AC 89 ms
12,416 KB
testcase_38 AC 84 ms
12,416 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 95 ms
12,160 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 169 ms
24,192 KB
testcase_46 AC 99 ms
14,592 KB
testcase_47 AC 149 ms
20,992 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 84 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

(n,x),a=$<.map{_1.split.map &:to_i}
a.sort!
puts a.each_cons(2).all?{_1<_2^x&&_1^x<_2}? :Yes : :No
0