結果
問題 |
No.487 2017 Calculation(2017の計算)
|
ユーザー |
|
提出日時 | 2017-02-24 23:04:28 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 828 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 23:42:29 |
合計ジャッジ時間 | 1,349 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 9 |
ソースコード
# -*- coding: utf-8 -*- first = raw_input() split_first = first.split() M = int(split_first[0]) if M != 1: print (2017+(2017%M)**((2*2017)%(M-1)))%M else: print 0