結果

問題 No.8072 Sum of sqrt(x)
ユーザー trineutron
提出日時 2020-06-09 16:40:14
言語 Fortran
(gFortran 14.2.0)
結果
TLE  
実行時間 -
コード長 237 bytes
コンパイル時間 1,729 ms
コンパイル使用メモリ 30,208 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-03 11:06:13
合計ジャッジ時間 75,310 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 TLE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

program main
    implicit none
    integer :: i, n
    real(16) :: s = 0
    real(8) :: x, ans
    read *, n
    do i = 1, n
        read *, x
        s = s + sqrt(x)
        ans = s
        print '(g0)', ans
    end do
end program main
0