結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー rlangevinrlangevin
提出日時 2023-01-04 22:00:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 74 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-08-18 18:49:49
合計ジャッジ時間 2,188 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,308 KB
testcase_01 AC 63 ms
71,484 KB
testcase_02 AC 64 ms
71,060 KB
testcase_03 AC 62 ms
71,448 KB
testcase_04 AC 62 ms
71,324 KB
testcase_05 AC 67 ms
71,076 KB
testcase_06 AC 63 ms
71,376 KB
testcase_07 AC 62 ms
71,208 KB
testcase_08 AC 68 ms
71,332 KB
testcase_09 AC 68 ms
71,208 KB
testcase_10 AC 62 ms
71,304 KB
testcase_11 AC 64 ms
71,512 KB
testcase_12 AC 65 ms
71,308 KB
testcase_13 AC 64 ms
71,208 KB
testcase_14 AC 65 ms
71,348 KB
testcase_15 AC 63 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = int(input())
ans = 2017 + pow(2017 * 2017 % M, 2017, M)
print(ans % M)
0