結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
|
提出日時 | 2020-10-30 22:46:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 721 bytes |
コンパイル時間 | 2,067 ms |
コンパイル使用メモリ | 195,252 KB |
最終ジャッジ日時 | 2025-01-15 17:48:44 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 40 |
ソースコード
// g++ A.cpp -std=c++14 -I . && ./a.out #include <bits/stdc++.h> using namespace std; #include <cmath> // #include <atcoder/all> // using namespace atcoder; // using mint = modint1000000007; // using mint = modint998244353; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, a, b) for (int i = a; i < (int)(b); i++) #define rrep(i, a, b) for (int i = a; i > (int)(b); i--) #define all(v) v.begin(), v.end() using ll = long long; const ll INF = 1e18; // 変数定義 ll N, M, Q, a, b, c, d, e, x, y, t, T, total, cnt; long double ans; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin >> N; rep2(i, x, 10001) { ans += riemann_zeta(i) * 1e6; } ans = int(ans); return 0; }