結果
| 問題 | No.2971 無理積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-29 22:30:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 431 bytes |
| コンパイル時間 | 1,590 ms |
| コンパイル使用メモリ | 166,156 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 22:30:48 |
| 合計ジャッジ時間 | 7,025 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}