結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー raven7959raven7959
提出日時 2022-08-28 17:50:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 80,492 KB
最終ジャッジ日時 2024-04-23 15:23:33
合計ジャッジ時間 4,342 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
80,176 KB
testcase_01 AC 102 ms
80,332 KB
testcase_02 AC 101 ms
80,364 KB
testcase_03 AC 104 ms
80,244 KB
testcase_04 AC 100 ms
80,192 KB
testcase_05 AC 106 ms
79,820 KB
testcase_06 AC 107 ms
80,232 KB
testcase_07 AC 104 ms
80,228 KB
testcase_08 AC 106 ms
80,240 KB
testcase_09 AC 144 ms
80,148 KB
testcase_10 AC 100 ms
80,288 KB
testcase_11 AC 104 ms
80,240 KB
testcase_12 AC 101 ms
80,148 KB
testcase_13 AC 101 ms
80,244 KB
testcase_14 AC 99 ms
79,888 KB
testcase_15 AC 106 ms
80,384 KB
testcase_16 AC 101 ms
80,308 KB
testcase_17 AC 98 ms
80,156 KB
testcase_18 AC 105 ms
80,260 KB
testcase_19 AC 101 ms
80,228 KB
testcase_20 AC 101 ms
80,304 KB
testcase_21 AC 105 ms
80,164 KB
testcase_22 AC 101 ms
80,324 KB
testcase_23 AC 102 ms
80,128 KB
testcase_24 AC 101 ms
80,068 KB
testcase_25 AC 101 ms
79,940 KB
testcase_26 AC 97 ms
79,896 KB
testcase_27 AC 99 ms
80,240 KB
testcase_28 AC 102 ms
80,492 KB
testcase_29 AC 103 ms
80,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
N=int(input())
ans=Decimal(0)
for _ in range(N):
    x=Decimal(input())
    ans+=x
ans=str(ans)
if "." in ans:
    p=ans.index(".")
    ans+="0"*(10-(len(ans)-p-1))
else:
    ans+="."+"0"*10
print(ans)
0