結果
| 問題 | No.487 2017 Calculation(2017の計算) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-02 00:43:09 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 77,868 KB |
| 実行使用メモリ | 85,576 KB |
| 最終ジャッジ日時 | 2026-04-02 00:43:10 |
| 合計ジャッジ時間 | 1,098 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<iostream>
#include<cassert>
#include<atcoder/modint>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
using mint=atcoder::modint;
int M;cin>>M;
mint::set_mod(M);
cout<<(2017+mint(2017*2017).pow(2017)).val()<<endl;
}