結果

問題 No.2285 Make A Unit Square
ユーザー KudeKude
提出日時 2023-04-28 22:00:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2024-04-28 23:36:22
合計ジャッジ時間 1,790 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,712 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

x =[0,0,0,0,1,1,2,0,3,1,1,0,3,3,2,2,4,0]
y =[5,2,7,4,0,1,1,2,0,3,1,1,0,3,3,2,2,4,4,5,5,2,3,3,0,1,1,3,0,2,1,1,0,4]
for _ in range(int(input())):
    a, b = map(int, input().split())
    g = 0
    for c in (a, b):
        if c < len(x):
            g ^= x[c]
        else:
            g ^= y[(c - len(x)) % len(y)]
    print('First' if g else 'Second')
0