結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
|
提出日時 | 2020-11-07 21:54:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 782 ms |
コンパイル使用メモリ | 80,116 KB |
最終ジャッジ日時 | 2025-01-15 21:34:06 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 39 WA * 1 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 5 | main() | ^~~~
ソースコード
#include<iostream> #include<cmath> using namespace std; int x; main() { cin>>x; double ans=0; for(int n=x;n<2e4;n++) { ans+=(riemann_zeta(n)-1)*1e6; } cout<<floor(ans)<<endl; }