結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー qibqib
提出日時 2023-02-01 23:11:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-09-14 08:48:31
合計ジャッジ時間 2,482 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,572 KB
testcase_01 AC 73 ms
71,236 KB
testcase_02 AC 73 ms
71,444 KB
testcase_03 AC 75 ms
71,040 KB
testcase_04 AC 77 ms
71,384 KB
testcase_05 AC 72 ms
71,336 KB
testcase_06 AC 72 ms
71,380 KB
testcase_07 AC 74 ms
71,032 KB
testcase_08 AC 72 ms
71,340 KB
testcase_09 AC 73 ms
71,456 KB
testcase_10 AC 74 ms
71,376 KB
testcase_11 AC 71 ms
71,344 KB
testcase_12 AC 72 ms
71,464 KB
testcase_13 AC 75 ms
71,344 KB
testcase_14 AC 72 ms
71,036 KB
testcase_15 AC 75 ms
71,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m = int(input())

if m == 1 or m == 2017:
  print("0")
  exit()

print((2017 + pow(2017, 4034, m)) % m)
0