結果

問題 No.8072 Sum of sqrt(x)
ユーザー trineutron
提出日時 2020-06-09 16:48:27
言語 Fortran
(gFortran 15.2.0)
結果
TLE  
実行時間 -
コード長 268 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 410 ms
コンパイル使用メモリ 30,848 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-03 11:11:21
合計ジャッジ時間 74,404 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 TLE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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