結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
|
提出日時 | 2021-10-24 14:39:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 3,654 ms |
コンパイル使用メモリ | 88,044 KB |
最終ジャッジ日時 | 2025-01-25 05:12:22 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 3 OLE * 20 |
ソースコード
#include<iostream> #include <iomanip> #include<cmath> using namespace std; int main() { typedef long double real; int N; cin >> N; real ans = 0; cout << fixed << setprecision(17); for (auto i=0; i<N; ++i) { long long int x; cin >> x; ans += sqrt(real(x)); cout << ans << endl; } return 0; }