結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-14 16:28:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 6,472 KB
実行使用メモリ 6,196 KB
最終ジャッジ日時 2023-09-25 20:01:00
合計ジャッジ時間 1,291 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,908 KB
testcase_01 AC 12 ms
5,948 KB
testcase_02 AC 11 ms
6,196 KB
testcase_03 AC 11 ms
5,908 KB
testcase_04 AC 10 ms
6,060 KB
testcase_05 AC 12 ms
6,128 KB
testcase_06 AC 12 ms
5,952 KB
testcase_07 AC 11 ms
6,044 KB
testcase_08 AC 11 ms
6,184 KB
testcase_09 AC 11 ms
6,128 KB
testcase_10 AC 11 ms
6,020 KB
testcase_11 AC 12 ms
5,980 KB
testcase_12 AC 11 ms
5,948 KB
testcase_13 AC 12 ms
6,024 KB
testcase_14 AC 12 ms
5,960 KB
testcase_15 AC 11 ms
5,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = int(raw_input())
b = 2017 % M
tmp = 1
for i in range(0, 4034):
	tmp = (tmp * b) % M
print (b + tmp) % M
0