結果
| 問題 |
No.2971 無理積分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-29 22:32:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 1,665 ms |
| コンパイル使用メモリ | 166,720 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-29 22:32:53 |
| 合計ジャッジ時間 | 5,577 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 20 |
ソースコード
#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/1000000;
for(i=1;i<1000000;i++){
double t=i*d;
ans+=d*sqrt(t*t*t+N*N*N);
}
cout << fixed << setprecision(12) << ans << endl;
return 0;
}