結果
| 問題 | No.2971 無理積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-29 22:30:41 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,554 ms |
| コンパイル使用メモリ | 180,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-23 15:25:31 |
| 合計ジャッジ時間 | 5,694 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
#define REP(i,n) for(int i=0;i<int(n);i++)
int main(void){
cin.tie(nullptr); ios_base::sync_with_stdio(false);
int i,j;
double N;
cin >> N;
double ans=0;
double d=1.0/10000;
for(i=1;i<10000;i++){
double t=i*d;
ans+=d*sqrt(t*t*t+N*N*N);
}
cout << fixed << setprecision(12) << ans << endl;
return 0;
}