結果

問題 No.715 集合と二人ゲーム
ユーザー maimai
提出日時 2018-07-13 22:35:43
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 54,784 KB
最終ジャッジ日時 2024-04-17 11:13:53
合計ジャッジ時間 12,536 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 84 ms
12,288 KB
testcase_02 AC 89 ms
12,416 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 95 ms
13,056 KB
testcase_06 AC 98 ms
13,184 KB
testcase_07 AC 99 ms
13,568 KB
testcase_08 AC 97 ms
13,696 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 107 ms
14,464 KB
testcase_13 AC 106 ms
14,976 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 112 ms
16,000 KB
testcase_18 AC 114 ms
16,384 KB
testcase_19 AC 116 ms
16,256 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 121 ms
17,408 KB
testcase_23 AC 124 ms
17,408 KB
testcase_24 AC 130 ms
17,920 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 135 ms
18,560 KB
testcase_28 AC 141 ms
18,944 KB
testcase_29 AC 139 ms
19,200 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 134 ms
17,920 KB
testcase_34 AC 128 ms
17,024 KB
testcase_35 AC 87 ms
12,288 KB
testcase_36 AC 86 ms
12,160 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 81 ms
12,160 KB
testcase_40 WA -
testcase_41 AC 83 ms
12,160 KB
testcase_42 AC 83 ms
12,288 KB
testcase_43 AC 84 ms
12,288 KB
testcase_44 WA -
testcase_45 AC 80 ms
12,288 KB
testcase_46 AC 80 ms
12,032 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 84 ms
12,288 KB
testcase_50 AC 414 ms
54,784 KB
testcase_51 WA -
testcase_52 AC 407 ms
54,656 KB
testcase_53 WA -
testcase_54 AC 394 ms
54,656 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 AC 369 ms
50,176 KB
testcase_58 AC 408 ms
54,784 KB
testcase_59 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def ascan; gets.split.map(&:to_i); end
gets
aa = ascan.sort

lis = [1]
aa.each_cons(2) do |a,b|
    if (b-a).abs <= 1
        lis[-1] += 1
    else
        lis << 1
    end
end

hoge = lis.map{|e| [2,e].min}.reduce(:^)
puts hoge == 0 ? :Second : :First
0