結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
|
| 提出日時 | 2023-08-04 01:09:16 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 789 bytes |
| 記録 | |
| コンパイル時間 | 582 ms |
| コンパイル使用メモリ | 32,384 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2024-10-13 22:13:42 |
| 合計ジャッジ時間 | 35,466 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 WA * 15 OLE * 9 |
ソースコード
#include<assert.h>
#include<complex.h>
#include<ctype.h>
#include<errno.h>
#include<fenv.h>
#include<float.h>
#include<inttypes.h>
#include<iso646.h>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<setjmp.h>
#include<signal.h>
#include<stdalign.h>
#include<stdarg.h>
#include<stdatomic.h>
#include<stdbool.h>
#include<stddef.h>
#include<stdint.h>
#include<stdio.h>
#include<stdlib.h>
#include<stdnoreturn.h>
#include<string.h>
#include<tgmath.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
int main(void) {
int N;
scanf("%d", &N);
int x[N];
for (int i = 0; i < N; i++) {
scanf("%d", &x[i]);
}
long double ans = 0;
for (int i = 0; i < N; i++) {
ans += sqrt(x[i]);
printf("%.18Lf\n", ans);
}
return 0;
}