結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
koi_kotya
|
| 提出日時 | 2020-10-30 22:28:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 1,644 bytes |
| コンパイル時間 | 1,392 ms |
| コンパイル使用メモリ | 165,144 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-22 01:41:35 |
| 合計ジャッジ時間 | 2,452 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 40 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
#define p_ary(ary,a,b) do { cout << "["; for (int count = (a);count < (b);++count) cout << ary[count] << ((b)-1 == count ? "" : ", "); cout << "]\n"; } while(0)
#define p_map(map,it) do {cout << "{";for (auto (it) = map.begin();;++(it)) {if ((it) == map.end()) {cout << "}\n";break;}else cout << "" << (it)->first << "=>" << (it)->second << ", ";}}while(0)
template<typename T1,typename T2>ostream& operator<<(ostream& os,const pair<T1,T2>& a) {os << "(" << a.first << ", " << a.second << ")";return os;}
const char newl = '\n';
int main() {
int x;
cin >> x;
double ans[21] = {
0,
0,
1.0,
0.35506593315177356352758483335397,
0.15300902999217927812784667184252,
0.070685796281041086611842975301357,
0.033758041137671160280477488844323,
0.016414979153222020565959559053402,
0.0080657017712991937261620092036055,
0.003988345573354854347476770694953,
0.001979952747272639929624001462541,
0.00098537761945455459247804256222194,
0.00049118901533509003377576003575201,
0.00024510246202704173513776198801234,
0.00012238911444855258838592546165494,
0.000061140979389847759127380356519607,
0.000030552743082827265575651845874545,
0.000015270483674175393843080358237823,
0.0000076332860362756315694800646747938,
0.0000038159927712757917130184200528539,
0.0000019077800547218527873614622577526
};
if (x < 21) cout << int(ans[x]*1e6) << newl;
else cout << 0 << newl;
}
koi_kotya