結果

問題 No.2481 Shiritori
ユーザー FromBooskaFromBooska
提出日時 2023-09-22 22:27:31
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 456 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 79,396 KB
最終ジャッジ日時 2023-09-22 22:27:38
合計ジャッジ時間 5,880 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,148 KB
testcase_01 AC 76 ms
70,884 KB
testcase_02 AC 73 ms
70,984 KB
testcase_03 AC 73 ms
70,996 KB
testcase_04 AC 74 ms
70,852 KB
testcase_05 AC 82 ms
71,232 KB
testcase_06 RE -
testcase_07 AC 78 ms
71,116 KB
testcase_08 AC 74 ms
71,132 KB
testcase_09 AC 75 ms
70,860 KB
testcase_10 AC 77 ms
70,908 KB
testcase_11 AC 76 ms
71,168 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 76 ms
71,276 KB
testcase_15 AC 80 ms
71,056 KB
testcase_16 RE -
testcase_17 AC 74 ms
71,272 KB
testcase_18 AC 77 ms
71,188 KB
testcase_19 AC 75 ms
71,132 KB
testcase_20 AC 75 ms
71,184 KB
testcase_21 AC 73 ms
71,304 KB
testcase_22 AC 75 ms
71,224 KB
testcase_23 AC 75 ms
71,196 KB
testcase_24 AC 75 ms
71,300 KB
testcase_25 AC 75 ms
71,156 KB
testcase_26 AC 73 ms
71,176 KB
testcase_27 AC 83 ms
71,060 KB
testcase_28 AC 74 ms
71,192 KB
testcase_29 AC 75 ms
71,056 KB
testcase_30 AC 76 ms
71,116 KB
testcase_31 AC 75 ms
71,120 KB
testcase_32 AC 75 ms
71,236 KB
testcase_33 AC 73 ms
71,236 KB
testcase_34 AC 74 ms
71,240 KB
testcase_35 AC 74 ms
71,296 KB
testcase_36 AC 75 ms
71,280 KB
testcase_37 AC 74 ms
71,084 KB
testcase_38 AC 75 ms
71,172 KB
testcase_39 AC 73 ms
70,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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