結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2021-05-16 18:18:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 302 bytes |
| コンパイル時間 | 9,130 ms |
| コンパイル使用メモリ | 378,288 KB |
| 最終ジャッジ日時 | 2025-01-21 13:19:18 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 39 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::cpp_int mp;
int main(){
int x;
double ans=1;
cin>>x;
while(x>=3){
x--;
ans-=riemann_zeta(x)-1;
}
ans*=1000000;
cout<<floor(ans)<<endl;
}
ytft