結果
| 問題 | No.220 世界のなんとか2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-31 20:31:49 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 953 bytes |
| 記録 | |
| コンパイル時間 | 1,870 ms |
| コンパイル使用メモリ | 208,072 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-06 20:52:02 |
| 合計ジャッジ時間 | 3,263 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
#define show(x) cerr << #x << " = " << x << endl
using namespace std;
using ull = unsigned long long;
template <typename T>
vector<T> Vec(int n, T v)
{
return vector<T>(n, v);
}
template <class... Args>
auto Vec(int n, Args... args)
{
auto val = Vec(args...);
return vector<decltype(val)>(n, move(val));
}
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
int P;
cin >> P;
constexpr ull ans[19] = {
3ULL,
45ULL,
513ULL,
5625ULL,
60633ULL,
645705ULL,
6811353ULL,
71302185ULL,
741719673ULL,
7675477065ULL,
79079293593ULL,
811713642345ULL,
8305422781113ULL,
84748805030025ULL,
862739245270233ULL,
8764653207432105ULL,
88881878866888953ULL,
899936909802000585ULL,
9099432188218005273ULL,
};
cout << ans[P - 1] << endl;
return 0;
}