結果
| 問題 | No.487 2017 Calculation(2017の計算) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-24 23:04:28 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 167 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 77,440 KB |
| 最終ジャッジ日時 | 2025-12-03 23:06:59 |
|
ジャッジサーバーID (参考情報) |
judge2 / 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