結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
trineutron
|
| 提出日時 | 2020-06-05 18:38:27 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1,056 ms / 2,000 ms |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 455 ms |
| コンパイル使用メモリ | 64,512 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 12:17:35 |
| 合計ジャッジ時間 | 108,189 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <cstdio>
#include <cmath>
int main() {
int n;
scanf("%d", &n);
__float128 s = 0;
for (int i = 0; i < n; i++) {
long double x;
scanf("%llf", &x);
x = sqrtl(x);
s += x;
printf("%.17llg\n", (long double) s);
}
}
trineutron