結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー 👑 H20H20
提出日時 2021-02-25 09:23:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 247 ms / 5,000 ms
コード長 289 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 90,740 KB
最終ジャッジ日時 2023-09-29 22:59:23
合計ジャッジ時間 8,957 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 247 ms
88,708 KB
testcase_01 AC 244 ms
88,752 KB
testcase_02 AC 236 ms
88,840 KB
testcase_03 AC 232 ms
89,216 KB
testcase_04 AC 233 ms
88,856 KB
testcase_05 AC 229 ms
88,924 KB
testcase_06 AC 237 ms
88,904 KB
testcase_07 AC 239 ms
88,748 KB
testcase_08 AC 232 ms
88,920 KB
testcase_09 AC 239 ms
90,740 KB
testcase_10 AC 225 ms
89,004 KB
testcase_11 AC 227 ms
88,872 KB
testcase_12 AC 232 ms
88,904 KB
testcase_13 AC 228 ms
88,872 KB
testcase_14 AC 234 ms
88,920 KB
testcase_15 AC 235 ms
88,660 KB
testcase_16 AC 230 ms
88,872 KB
testcase_17 AC 230 ms
88,756 KB
testcase_18 AC 230 ms
88,916 KB
testcase_19 AC 244 ms
88,836 KB
testcase_20 AC 226 ms
88,956 KB
testcase_21 AC 230 ms
88,980 KB
testcase_22 AC 234 ms
88,888 KB
testcase_23 AC 233 ms
89,008 KB
testcase_24 AC 228 ms
88,984 KB
testcase_25 AC 227 ms
88,836 KB
testcase_26 AC 230 ms
88,984 KB
testcase_27 AC 230 ms
88,956 KB
testcase_28 AC 229 ms
88,844 KB
testcase_29 AC 236 ms
88,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
N=int(input())
s = 0
for i in range(N):
    A = input()
    d = Decimal(A)*10**10
    s += int(d)
if s==0:
    print('0.0000000000')
else:
    if s>0:
        s = str(s).zfill(11)
    else:
        s = str(s).zfill(12)
    ans = s[:-10] + '.' + s[-10:]
    print(ans)
0