結果

問題 No.2285 Make A Unit Square
ユーザー KudeKude
提出日時 2023-04-28 22:06:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 278 ms / 2,000 ms
コード長 424 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 76,800 KB
最終ジャッジ日時 2024-11-17 21:03:06
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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