結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kk
提出日時 2020-09-24 01:30:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 71,764 KB
最終ジャッジ日時 2023-09-10 13:16:29
合計ジャッジ時間 4,128 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,512 KB
testcase_01 AC 70 ms
71,564 KB
testcase_02 AC 71 ms
71,488 KB
testcase_03 WA -
testcase_04 AC 70 ms
71,408 KB
testcase_05 AC 71 ms
71,352 KB
testcase_06 AC 71 ms
71,352 KB
testcase_07 AC 73 ms
71,336 KB
testcase_08 AC 72 ms
71,488 KB
testcase_09 AC 73 ms
71,444 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 73 ms
71,536 KB
testcase_14 AC 72 ms
71,584 KB
testcase_15 AC 72 ms
71,388 KB
testcase_16 AC 73 ms
71,464 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 72 ms
71,096 KB
testcase_26 AC 73 ms
71,464 KB
testcase_27 WA -
testcase_28 AC 72 ms
71,384 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ret = 0
for _ in range(n):
  a = input()
  p = a.find('.')
  if p == -1:
    a += "0000000000"
  else:
    m = 10 - len(a) + p + 1
    a = a[:p] + a[p+1:]
    a += "".join('0' for _ in range(m))
  ret += int(a)

d = ret // 10000000000
f = ret % 10000000000

print("{}.{:010}".format(d, f))
    
    

0