結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー 👑 yumechiyumechi
提出日時 2017-02-24 23:47:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 86,792 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-08-31 00:15:44
合計ジャッジ時間 2,214 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,296 KB
testcase_01 AC 70 ms
71,208 KB
testcase_02 AC 71 ms
71,368 KB
testcase_03 AC 71 ms
71,292 KB
testcase_04 AC 70 ms
71,560 KB
testcase_05 AC 70 ms
71,336 KB
testcase_06 AC 70 ms
71,440 KB
testcase_07 AC 71 ms
71,504 KB
testcase_08 AC 70 ms
71,336 KB
testcase_09 AC 70 ms
71,468 KB
testcase_10 AC 70 ms
71,460 KB
testcase_11 AC 70 ms
71,504 KB
testcase_12 AC 70 ms
71,300 KB
testcase_13 AC 69 ms
71,388 KB
testcase_14 AC 70 ms
71,396 KB
testcase_15 AC 70 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
	m = int(input())
	x = (2017 * 2017) ** 2017
	x += 2017
	print(x % m)


if __name__=="__main__":
    solve()
0