結果

問題 No.2481 Shiritori
ユーザー FromBooskaFromBooska
提出日時 2023-09-22 22:24:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 350 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 87,028 KB
実行使用メモリ 79,140 KB
最終ジャッジ日時 2023-09-22 22:24:44
合計ジャッジ時間 5,498 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,080 KB
testcase_01 AC 68 ms
71,080 KB
testcase_02 AC 69 ms
70,956 KB
testcase_03 AC 72 ms
70,784 KB
testcase_04 AC 69 ms
71,204 KB
testcase_05 AC 68 ms
71,084 KB
testcase_06 RE -
testcase_07 AC 69 ms
71,212 KB
testcase_08 AC 68 ms
70,900 KB
testcase_09 AC 69 ms
70,976 KB
testcase_10 AC 69 ms
70,944 KB
testcase_11 AC 70 ms
71,092 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 74 ms
71,012 KB
testcase_15 AC 69 ms
70,788 KB
testcase_16 RE -
testcase_17 AC 68 ms
71,136 KB
testcase_18 AC 67 ms
71,176 KB
testcase_19 AC 69 ms
71,140 KB
testcase_20 AC 68 ms
71,088 KB
testcase_21 AC 69 ms
71,184 KB
testcase_22 AC 69 ms
71,184 KB
testcase_23 AC 69 ms
71,160 KB
testcase_24 AC 69 ms
71,180 KB
testcase_25 AC 68 ms
71,088 KB
testcase_26 AC 68 ms
71,080 KB
testcase_27 AC 69 ms
71,176 KB
testcase_28 AC 69 ms
71,152 KB
testcase_29 AC 77 ms
71,124 KB
testcase_30 AC 69 ms
71,008 KB
testcase_31 AC 68 ms
71,024 KB
testcase_32 AC 68 ms
71,012 KB
testcase_33 AC 69 ms
71,036 KB
testcase_34 AC 68 ms
71,028 KB
testcase_35 AC 68 ms
71,184 KB
testcase_36 AC 69 ms
71,080 KB
testcase_37 AC 67 ms
71,160 KB
testcase_38 AC 68 ms
71,040 KB
testcase_39 AC 68 ms
70,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# しりとりは同じ文字ではじまるように攻撃する
# aで終わるように攻撃したいが、何回攻撃反転が起こるか
# 攻撃反転というのはaではじまりaで終わる数
# N**(M-2)%2でどうか

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