結果
| 問題 |
No.220 世界のなんとか2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-31 20:31:49 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 1,000 ms |
| コード長 | 953 bytes |
| コンパイル時間 | 2,001 ms |
| コンパイル使用メモリ | 192,220 KB |
| 最終ジャッジ日時 | 2025-01-05 06:51:55 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}