結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kichirb3kichirb3
提出日時 2018-04-02 00:58:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 658 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 10,820 KB
実行使用メモリ 9,068 KB
最終ジャッジ日時 2023-09-08 13:12:50
合計ジャッジ時間 2,835 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,900 KB
testcase_01 AC 22 ms
9,040 KB
testcase_02 AC 21 ms
9,056 KB
testcase_03 AC 20 ms
8,916 KB
testcase_04 AC 20 ms
8,940 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 21 ms
9,044 KB
testcase_11 AC 21 ms
8,860 KB
testcase_12 AC 21 ms
8,972 KB
testcase_13 AC 21 ms
8,868 KB
testcase_14 AC 20 ms
8,956 KB
testcase_15 AC 20 ms
8,904 KB
testcase_16 AC 21 ms
9,060 KB
testcase_17 AC 21 ms
9,056 KB
testcase_18 AC 21 ms
8,888 KB
testcase_19 AC 20 ms
8,924 KB
testcase_20 AC 21 ms
8,912 KB
testcase_21 AC 21 ms
9,048 KB
testcase_22 AC 21 ms
9,000 KB
testcase_23 AC 21 ms
8,904 KB
testcase_24 AC 21 ms
9,068 KB
testcase_25 AC 21 ms
8,980 KB
testcase_26 AC 20 ms
8,980 KB
testcase_27 AC 20 ms
8,956 KB
testcase_28 AC 21 ms
8,920 KB
testcase_29 AC 20 ms
9,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
No.81 すべて足すだけの簡単なお仕事です。
https://yukicoder.me/problems/no/81

"""
import sys
from sys import stdin
from decimal import *
input = stdin.readline


def solve(n):
    getcontext().prec = 20
    ans = Decimal(0)
    for _ in range(n):
        ans += Decimal(input())
    return ans


def main(args):
    n = int(input())
    res = solve(n)

    t = str(res)
    if '.' not in t:
        ans = t + '.' + '0'*10
    else:
        a, b = t.split('.')
        if len(b) < 10:
            b = b + '0'*(10-len(b))
        ans = a + '.' + b
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])
0