結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー Zu_rinZu_rin
提出日時 2020-05-23 00:33:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 474 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,968 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-25 16:22:45
合計ジャッジ時間 1,784 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,972 KB
testcase_01 AC 16 ms
7,860 KB
testcase_02 AC 16 ms
7,872 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 16 ms
7,960 KB
testcase_05 AC 15 ms
7,788 KB
testcase_06 AC 16 ms
7,900 KB
testcase_07 AC 17 ms
7,848 KB
testcase_08 AC 16 ms
7,856 KB
testcase_09 AC 16 ms
7,988 KB
testcase_10 WA -
testcase_11 AC 16 ms
7,852 KB
testcase_12 AC 16 ms
7,776 KB
testcase_13 AC 16 ms
7,860 KB
testcase_14 AC 16 ms
7,860 KB
testcase_15 AC 16 ms
7,856 KB
testcase_16 AC 16 ms
7,904 KB
testcase_17 AC 16 ms
7,816 KB
testcase_18 AC 16 ms
7,792 KB
testcase_19 AC 15 ms
7,872 KB
testcase_20 AC 16 ms
7,968 KB
testcase_21 AC 16 ms
7,908 KB
testcase_22 AC 16 ms
7,856 KB
testcase_23 AC 16 ms
7,896 KB
testcase_24 AC 16 ms
7,872 KB
testcase_25 AC 16 ms
7,820 KB
testcase_26 AC 16 ms
7,968 KB
testcase_27 AC 16 ms
7,960 KB
testcase_28 AC 15 ms
7,776 KB
testcase_29 AC 16 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    num = int(input())
    ans = 0
    for i in range(num):
        k = 1
        s = input() + ".0"
        s = s.split('.')
        if s[0][0] == '-':
            k = -1
        ans += int(s[0]) * pow(10, 10)
        ans += k * int(s[1]) * pow(10, 10 - len(s[1]))
    a = str(ans)[:-10]
    b = str(ans)[-10:]
    if len(a) == 0 or a == "-":
        a += "0"
    while len(b) < 10:
        b += "0"
    print(a + "." + b)

if __name__ == "__main__":
    main()
0