結果

問題 No.8072 Sum of sqrt(x)
ユーザー Lisp_Coder
提出日時 2023-08-04 01:09:16
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 789 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,247 ms
コンパイル使用メモリ 43,136 KB
最終ジャッジ日時 2026-02-22 11:04:40
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 15 OLE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0