結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
![]() |
提出日時 | 2020-11-02 01:52:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 1,947 ms |
コンパイル使用メモリ | 194,456 KB |
最終ジャッジ日時 | 2025-01-15 18:57:27 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 40 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int x; cin >> x; if (x == 2) { cout << ll(1e6) << "\n"; return 0; } double sum = 0; for (int i = x; i < 1e6; i++) sum += riemann_zeta(i) - 1; cout << ll(sum * 1e6) << "\n"; }