結果

問題 No.1273 はじめのζ関数
ユーザー kotatsugame
提出日時 2020-11-07 21:55:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 943 ms
コンパイル使用メモリ 79,960 KB
最終ジャッジ日時 2025-01-15 21:34:12
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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()
      | ^~~~

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;
int x;
main()
{
	cin>>x;
	double ans=0;
	for(int n=x;n<1e5;n++)
	{
		ans+=(riemann_zeta(n)-1)*1e6;
	}
	cout<<floor(ans)<<endl;
}
0