結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-06-06 14:35:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 54,348 KB |
| 最終ジャッジ日時 | 2024-12-29 08:29:01 |
| 合計ジャッジ時間 | 2,621 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 22 |
ソースコード
n=int(input())
res0,res1=0,0
for _ in range(n):
x=input()
if '.' in x:
c0,c1=x.split('.')
res0+=int(c0)
res1+=int(c1+'0'*(10-len(c1)))
else:
res0+=int(x)
res0+=res1//(10**10)
res1%=10**10
res1=str(res1)
ans=str(res0)+'.'+'0'*(10-len(res1))+res1
print(ans)
とりゐ