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