結果
| 問題 | No.2285 Make A Unit Square |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2023-04-28 22:06:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 197 ms / 2,000 ms |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 85,164 KB |
| 実行使用メモリ | 81,152 KB |
| 最終ジャッジ日時 | 2026-05-12 15:05:08 |
| 合計ジャッジ時間 | 1,576 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
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')
Kude