結果
| 問題 |
No.2285 Make A Unit Square
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 12:20:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 660 bytes |
| コンパイル時間 | 313 ms |
| コンパイル使用メモリ | 82,180 KB |
| 実行使用メモリ | 77,004 KB |
| 最終ジャッジ日時 | 2025-01-25 12:20:38 |
| 合計ジャッジ時間 | 2,285 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 4 |
ソースコード
def gru(x):
if x in {0,1,2,16,19,33,36,53}:
return ans[x]
return ans[x%34+68]
ans=[-1,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, 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, 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, 3, 3, 0, 1, 1, 3, 0, 2, 1, 1, 0, 4]
lgh=len(ans)
for i in range(lgh):
ans[i]+=1
T=int(input())
for _ in range(T):
a,b=map(int,input().split())
print(["First","Second"][gru(a)==gru(b)])