結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-10-24 23:51:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 1,927 ms |
コンパイル使用メモリ | 193,108 KB |
最終ジャッジ日時 | 2025-01-15 15:37:32 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 4 WA * 1 OLE * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int n; cin >> n; long long a[n]; float ans = 0; rep(i,n) { long long a; cin >> a; printf("%.17f\n", ans += sqrt(a)); } return 0; }