結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
73,272 KB
testcase_01 AC 99 ms
73,124 KB
testcase_02 AC 100 ms
72,912 KB
testcase_03 AC 101 ms
72,832 KB
testcase_04 AC 101 ms
73,012 KB
testcase_05 AC 102 ms
72,892 KB
testcase_06 AC 112 ms
77,652 KB
testcase_07 AC 102 ms
77,856 KB
testcase_08 AC 102 ms
77,672 KB
testcase_09 AC 102 ms
77,712 KB
testcase_10 WA -
testcase_11 AC 102 ms
72,932 KB
testcase_12 AC 97 ms
72,928 KB
testcase_13 AC 98 ms
72,892 KB
testcase_14 AC 98 ms
73,236 KB
testcase_15 AC 100 ms
73,024 KB
testcase_16 AC 97 ms
72,964 KB
testcase_17 WA -
testcase_18 AC 102 ms
73,284 KB
testcase_19 AC 103 ms
73,008 KB
testcase_20 AC 99 ms
72,904 KB
testcase_21 AC 101 ms
72,812 KB
testcase_22 AC 99 ms
73,012 KB
testcase_23 AC 98 ms
73,008 KB
testcase_24 AC 97 ms
73,348 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 100 ms
73,048 KB
testcase_29 AC 102 ms
72,900 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:
            tmp += X[i]
    if now==-1:
        X += ['0']*10
        ans += int(''.join(X))
    else:
        
        tmp += '0'*(10 - (n-1 - now))
        ans += int(tmp)

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