結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2021-05-16 07:33:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 628 bytes |
| コンパイル時間 | 3,898 ms |
| コンパイル使用メモリ | 382,084 KB |
| 最終ジャッジ日時 | 2025-01-21 13:09:06 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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=0;
cin>>x;
auto start=std::chrono::system_clock::now();
auto end=std::chrono::system_clock::now();
int msec=std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count();
while(msec<1900){
ans+=std::riemann_zeta(x)-1;
++x;
end=std::chrono::system_clock::now();
msec=std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count();
}
ans*=1000000;
cout<<floor(ans)<<endl;
}
ytft