結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー 0w10w1
提出日時 2017-04-09 19:35:38
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-09-25 01:29:20
合計ジャッジ時間 2,438 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,200 KB
testcase_01 AC 71 ms
71,204 KB
testcase_02 AC 73 ms
71,468 KB
testcase_03 AC 70 ms
71,340 KB
testcase_04 AC 71 ms
71,372 KB
testcase_05 AC 67 ms
71,352 KB
testcase_06 AC 68 ms
71,360 KB
testcase_07 AC 70 ms
71,488 KB
testcase_08 AC 73 ms
71,380 KB
testcase_09 AC 71 ms
71,372 KB
testcase_10 AC 70 ms
71,220 KB
testcase_11 AC 69 ms
71,252 KB
testcase_12 AC 71 ms
71,320 KB
testcase_13 AC 69 ms
71,412 KB
testcase_14 AC 69 ms
71,204 KB
testcase_15 AC 69 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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