結果
問題 | No.2481 Shiritori |
ユーザー |
![]() |
提出日時 | 2024-12-16 00:25:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-12-16 00:26:03 |
合計ジャッジ時間 | 3,606 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 WA * 4 |
ソースコード
N, M = map(int, input().split())if M == 1:if N%2 == 1:print("First")else:print("Second")exit()ans = pow(N, M-2, 2)if ans == 1:print("First")else:print("Second")