結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー ShirotsumeShirotsume
提出日時 2022-03-06 21:22:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 91,000 KB
最終ジャッジ日時 2023-09-28 12:47:33
合計ジャッジ時間 9,104 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 225 ms
88,876 KB
testcase_01 AC 224 ms
89,048 KB
testcase_02 AC 229 ms
88,868 KB
testcase_03 AC 225 ms
88,904 KB
testcase_04 AC 229 ms
89,004 KB
testcase_05 AC 225 ms
88,924 KB
testcase_06 AC 229 ms
88,900 KB
testcase_07 AC 228 ms
88,932 KB
testcase_08 AC 238 ms
90,536 KB
testcase_09 AC 250 ms
91,000 KB
testcase_10 WA -
testcase_11 AC 231 ms
88,876 KB
testcase_12 AC 234 ms
88,912 KB
testcase_13 AC 226 ms
88,628 KB
testcase_14 AC 223 ms
88,868 KB
testcase_15 AC 228 ms
88,804 KB
testcase_16 AC 225 ms
88,884 KB
testcase_17 WA -
testcase_18 AC 236 ms
88,816 KB
testcase_19 AC 227 ms
88,888 KB
testcase_20 AC 231 ms
88,992 KB
testcase_21 AC 230 ms
88,908 KB
testcase_22 AC 229 ms
88,880 KB
testcase_23 AC 230 ms
88,652 KB
testcase_24 AC 231 ms
88,752 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 228 ms
88,940 KB
testcase_29 AC 231 ms
88,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal


n = int(input())

ans = 0

for i in range(n):
    x = Decimal(input())
    now = round(x * 10 ** 10) 
    ans += now

ans = str(ans)

n = len(ans)
ans = ans[:n - 10] + '.' + ans[n - 10:]

print(ans)
0