結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
|
提出日時 | 2020-11-01 11:06:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 193,844 KB |
最終ジャッジ日時 | 2025-01-15 18:43:14 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 40 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int solve(int x) { double ret = 1.0; for (int i = 2; i < x; i++) ret -= riemann_zeta(i) - 1; return int(ret * 1000000); } int main() { ios_base::sync_with_stdio(0); cin.tie(0); int x; cin >> x; cout << solve(x) << endl; return 0; }