結果
| 問題 | No.487 2017 Calculation(2017の計算) |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-03-04 00:13:40 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 503 bytes |
| 記録 | |
| コンパイル時間 | 1,990 ms |
| コンパイル使用メモリ | 333,484 KB |
| 実行使用メモリ | 9,188 KB |
| 最終ジャッジ日時 | 2026-07-06 20:06:19 |
| 合計ジャッジ時間 | 3,244 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
#include <atcoder/modint>
using mint = atcoder::modint;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int m;
cin >> m;
mint::set_mod(m);
mint ans = 0;
ans += 2017;
ans += mint(2017 * 2017).pow(2017);
cout << ans.val() << '\n';
return 0;
}
a01sa01to