結果
| 問題 | No.81 すべて足すだけの簡単なお仕事です。 |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-15 18:31:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 77,208 KB |
| 最終ジャッジ日時 | 2025-12-04 00:08:45 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 4 RE * 19 |
ソースコード
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)
JunOnuma