結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー JunOnuma
提出日時 2017-06-15 18:31:03
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 272 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-25 02:23:10
合計ジャッジ時間 1,228 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 4 RE * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
s = 0
for _ in range(n):
    i,j = raw_input().split('.')
    s += int(i) * (10**10)
    if i[0] == '-':
        s -= int(j) * (10**(10-len(j)))
    else:
        s += int(j) * (10**(10-len(j)))
print str(s/(10**10)) + '.' + str(s%(10**10)).zfill(10)
0