結果
| 問題 |
No.2971 無理積分
|
| コンテスト | |
| ユーザー |
るこーそー
|
| 提出日時 | 2024-12-02 15:56:58 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 671 bytes |
| コンパイル時間 | 5,172 ms |
| コンパイル使用メモリ | 308,592 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-02 15:57:10 |
| 合計ジャッジ時間 | 10,695 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll=long long;
#define rep1(i,a) for(int i=0;i<(a);i++)
#define rep2(i,a,b) for(int i=(a);i<(b);i++)
#define overload2(a,b,c,d,...) d
#define rep(...) overload2(__VA_ARGS__,rep2,rep1)(__VA_ARGS__)
#define all(x) (x).begin(),(x).end()
#define chmax(x,y)((x)=max(x,y))
#define chmin(x,y)((x)=min(x,y))
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n,N;
cin >> n;
N=n*n*n;
double ans=0;
for (double x=0;x<1;x+=0.0001){
ans+=sqrt(pow(x,3)+N);
}
cout << fixed << setprecision(10) << ans/10000 << endl;
}
るこーそー