結果

問題 No.2285 Make A Unit Square
ユーザー KudeKude
提出日時 2023-04-28 22:06:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 312 ms / 2,000 ms
コード長 424 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 76,928 KB
最終ジャッジ日時 2024-04-28 23:39:24
合計ジャッジ時間 1,823 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,584 KB
testcase_01 AC 44 ms
52,480 KB
testcase_02 AC 307 ms
76,928 KB
testcase_03 AC 312 ms
76,416 KB
testcase_04 AC 292 ms
76,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x =[0,0,0,0,1,1,2,0,3,1,1,0,3,3,2,2,4,0,5,2,2,3,3,0,1,1,3,0,2,1,1,0,4,5,2,7,4,0,1,1,2,0,3,1,1,0,3,3,2,2,4,4,5,5,2]
y =[3,3,0,1,1,3,0,2,1,1,0,4,5,3,7,4,8,1,1,2,0,3,1,1,0,3,3,2,2,4,4,5,5,9]
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