結果
問題 | No.81 すべて足すだけの簡単なお仕事です。 |
ユーザー |
![]() |
提出日時 | 2021-02-25 09:23:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 418 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 80,256 KB |
最終ジャッジ日時 | 2024-07-22 16:56:48 |
合計ジャッジ時間 | 5,496 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
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)