結果

問題 No.715 集合と二人ゲーム
ユーザー aporo_eeicaporo_eeic
提出日時 2018-07-13 23:46:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 24,868 KB
最終ジャッジ日時 2024-04-17 11:41:35
合計ジャッジ時間 33,959 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 43 ms
11,136 KB
testcase_02 WA -
testcase_03 AC 92 ms
11,904 KB
testcase_04 WA -
testcase_05 AC 168 ms
12,800 KB
testcase_06 AC 215 ms
13,184 KB
testcase_07 WA -
testcase_08 AC 337 ms
14,052 KB
testcase_09 AC 459 ms
14,584 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 1,145 ms
17,012 KB
testcase_17 WA -
testcase_18 AC 1,464 ms
17,088 KB
testcase_19 WA -
testcase_20 AC 1,550 ms
17,876 KB
testcase_21 WA -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 TLE -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def new_a(a, S):
    merged_set = set([a])
    new_set = []
    for i,s in enumerate(S):
        if(a in s or a+1 in s or a-1 in s):
            merged_set = merged_set | s
        else:
            new_set.append(s)
    new_set.append(merged_set)
    return new_set 

def jedge_set(n):
    if(n%4 == 0):
        return -1
    else:
        return 1

N = int(input().strip())
As = list(map(int, input().strip().split(" ")))
S = []
for a in As:
    S = new_a(a, S)


ans = 1
for s in S:
    ans *= jedge_set(len(s))
if(ans == 1):
    print("First")
else:
    print("Second")
0