結果

問題 No.2481 Shiritori
ユーザー FromBooskaFromBooska
提出日時 2023-09-22 22:30:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 454 bytes
コンパイル時間 1,118 ms
コンパイル使用メモリ 86,724 KB
実行使用メモリ 79,156 KB
最終ジャッジ日時 2023-09-22 22:30:44
合計ジャッジ時間 6,117 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,268 KB
testcase_01 AC 85 ms
71,160 KB
testcase_02 AC 71 ms
71,264 KB
testcase_03 AC 70 ms
71,416 KB
testcase_04 AC 71 ms
71,164 KB
testcase_05 AC 71 ms
71,048 KB
testcase_06 RE -
testcase_07 AC 69 ms
71,212 KB
testcase_08 AC 72 ms
71,056 KB
testcase_09 AC 70 ms
71,168 KB
testcase_10 AC 71 ms
71,136 KB
testcase_11 AC 70 ms
71,344 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 70 ms
71,300 KB
testcase_15 AC 70 ms
71,180 KB
testcase_16 RE -
testcase_17 AC 70 ms
71,216 KB
testcase_18 AC 72 ms
71,392 KB
testcase_19 AC 71 ms
71,272 KB
testcase_20 AC 71 ms
71,296 KB
testcase_21 AC 71 ms
71,056 KB
testcase_22 AC 71 ms
71,296 KB
testcase_23 AC 71 ms
71,308 KB
testcase_24 AC 71 ms
71,356 KB
testcase_25 AC 82 ms
71,056 KB
testcase_26 RE -
testcase_27 AC 72 ms
71,188 KB
testcase_28 AC 70 ms
71,208 KB
testcase_29 AC 72 ms
71,052 KB
testcase_30 AC 71 ms
71,308 KB
testcase_31 AC 71 ms
71,388 KB
testcase_32 AC 71 ms
71,300 KB
testcase_33 AC 72 ms
71,308 KB
testcase_34 AC 72 ms
71,388 KB
testcase_35 AC 71 ms
71,272 KB
testcase_36 AC 71 ms
71,164 KB
testcase_37 AC 87 ms
71,192 KB
testcase_38 AC 70 ms
71,348 KB
testcase_39 AC 71 ms
71,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# しりとりは同じ文字ではじまるように攻撃する
# aで終わるように攻撃したいが、何回攻撃反転が起こるか
# 攻撃反転というのはaではじまりaで終わる数
# N**(M-2)%2でどうか
# 合ってそうだが、いくつかREが出た、powが計算できないとみた

N, M = map(int, input().split())
N %= 100
M %= 100
calc = pow(N, M-2, 2)-1
if calc%2 == 0:
    print('First')
else:
    print('Second')
0