結果
問題 | No.2971 無理積分 |
ユーザー |
![]() |
提出日時 | 2024-11-29 21:42:43 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 2,869 ms |
コンパイル使用メモリ | 243,840 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 21:42:48 |
合計ジャッジ時間 | 4,054 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;const int INF = 1e9 + 10;const ll INFL = 4e18;int main() {ll N;cin >> N;double ans = 0;double d = 1e-5;for (double x = 0; abs(x - 1) > 1e-5; x += d) ans += sqrt(x * x * x + N * N * N) * d;printf("%.10f\n", ans);}