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