結果
| 問題 | No.81 すべて足すだけの簡単なお仕事です。 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-04 14:08:39 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 57 ms / 5,000 ms |
| + 263µs | |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 95,852 KB |
| 実行使用メモリ | 79,064 KB |
| 最終ジャッジ日時 | 2026-08-23 10:36:35 |
| 合計ジャッジ時間 | 3,753 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
n = int(input())
tot = 0
for _ in range(n):
S = input()
try:
ind = S.index(".")
except:
ind = len(S)
S = S[:ind] + S[ind+1:].ljust(10, "0")
tot += int(S)
tot = str(tot)
minus = False
if tot[0] == "-":
minus = True
tot = tot[1:]
tot = tot.zfill(11)
if minus:
tot = "-" + tot
print(f"{tot[:-10]}.{tot[-10:]}")