結果
| 問題 | No.1273 はじめのζ関数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-01 11:06:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 1,759 ms |
| コンパイル使用メモリ | 210,480 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-14 22:32:10 |
| 合計ジャッジ時間 | 2,885 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}