結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-01-21 17:07:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 700 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 77,764 KB
最終ジャッジ日時 2023-09-06 05:45:30
合計ジャッジ時間 4,446 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
72,948 KB
testcase_01 AC 99 ms
73,032 KB
testcase_02 AC 95 ms
72,948 KB
testcase_03 AC 97 ms
73,284 KB
testcase_04 AC 97 ms
72,752 KB
testcase_05 AC 97 ms
72,996 KB
testcase_06 AC 100 ms
77,724 KB
testcase_07 AC 100 ms
77,624 KB
testcase_08 AC 101 ms
77,764 KB
testcase_09 AC 98 ms
77,580 KB
testcase_10 WA -
testcase_11 AC 98 ms
73,136 KB
testcase_12 AC 95 ms
72,868 KB
testcase_13 AC 95 ms
72,952 KB
testcase_14 AC 96 ms
72,888 KB
testcase_15 AC 94 ms
72,996 KB
testcase_16 AC 96 ms
73,004 KB
testcase_17 WA -
testcase_18 AC 95 ms
72,968 KB
testcase_19 AC 96 ms
73,112 KB
testcase_20 AC 94 ms
73,052 KB
testcase_21 AC 98 ms
72,920 KB
testcase_22 AC 95 ms
72,952 KB
testcase_23 AC 97 ms
72,876 KB
testcase_24 AC 97 ms
73,124 KB
testcase_25 AC 100 ms
72,760 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 95 ms
72,988 KB
testcase_29 AC 98 ms
72,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())
ans = 0
for _ in range(N):
    
    X = list(input())[:-1]
    now = -1
    n = len(X)
    tmp = ''
    for i in range(n):
        if X[i]=='.':
            now = i
        else:
            if (X[i]=='0')&(tmp==''):
                continue
            tmp += X[i]
    if now==-1:
        X += ['0']*10
        ans += int(''.join(X))
    else:
        
        tmp += '0'*(10 - (n-1 - now))
        ans += int(tmp)
if ans==0:
    print('0.0000000000')
    exit()
ans = list(str(ans))

print(''.join(ans[:-10]+['.']+ans[-10:]))
        
        
0