結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
maspy
|
| 提出日時 | 2020-06-14 01:52:52 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 659 ms |
| コンパイル使用メモリ | 85,484 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-24 19:26:59 |
| 合計ジャッジ時間 | 48,581 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 OLE * 23 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
long double x;
__float128 sum = 0;
for(int i=0;i<N;i++){
cin >> x;
sum += __float128(sqrt(x));
cout << scientific << setprecision(16) << (long double)(sum) << "\n";
}
}
maspy