結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー is_eri23is_eri23
提出日時 2014-12-03 14:22:47
言語 Python2
(2.7.18)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,093 bytes
コンパイル時間 931 ms
コンパイル使用メモリ 6,700 KB
実行使用メモリ 7,100 KB
最終ジャッジ日時 2023-08-21 12:57:32
合計ジャッジ時間 1,662 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,984 KB
testcase_01 AC 15 ms
6,808 KB
testcase_02 AC 15 ms
6,880 KB
testcase_03 AC 15 ms
7,052 KB
testcase_04 AC 15 ms
6,876 KB
testcase_05 AC 16 ms
6,920 KB
testcase_06 AC 15 ms
6,924 KB
testcase_07 AC 16 ms
6,924 KB
testcase_08 AC 15 ms
7,100 KB
testcase_09 AC 15 ms
6,956 KB
testcase_10 RE -
testcase_11 AC 15 ms
6,964 KB
testcase_12 AC 15 ms
6,936 KB
testcase_13 AC 16 ms
6,816 KB
testcase_14 AC 16 ms
6,836 KB
testcase_15 AC 15 ms
6,948 KB
testcase_16 AC 16 ms
6,800 KB
testcase_17 WA -
testcase_18 AC 16 ms
6,796 KB
testcase_19 AC 16 ms
6,976 KB
testcase_20 AC 16 ms
6,812 KB
testcase_21 AC 16 ms
6,948 KB
testcase_22 AC 16 ms
6,940 KB
testcase_23 AC 17 ms
6,920 KB
testcase_24 AC 16 ms
7,092 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 WA -
testcase_28 AC 15 ms
6,884 KB
testcase_29 AC 15 ms
6,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from Queue import * # Queue, LifoQueue, PriorityQueue
from bisect import * #bisect, insort
from collections import * #deque, Counter,OrderedDict,defaultdict
#set([]) 
import math
import copy
import itertools
import string
import sys
myread = lambda : map(int,raw_input().split())
def ten_times(s):
    ret = 1
    if s[0] == '-':
        ret = -1
        s = s[1:]
    while s:
        if s[0] == '0':
            s = s[1:]
        else:
            break
    
    x = s.find('.')
    if x == -1:
        ret *= int(s+('0'*10))
    else:
        times = 10-(len(s)-x-1)
        #print len(s),x,times
        s = s[:x]+s[x+1:] + ('0' *times)
        ret *= int(s)
    #print ret
    return ret
def dot_insert(x):
    s = str(x)
    #print s
    if len(s) >= 11:
        return s[:-10]+'.'+s[-10:]
    else:
        '0'+'.'+('0'*10-len(s))+s
        
def solver():
    N = int(raw_input())
    ans = 0
    for _ in xrange(N):
        ans += ten_times(raw_input())
    print dot_insert(ans)

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