結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,264 KB
testcase_01 AC 72 ms
70,804 KB
testcase_02 AC 73 ms
71,288 KB
testcase_03 AC 72 ms
70,980 KB
testcase_04 AC 74 ms
71,008 KB
testcase_05 AC 70 ms
71,080 KB
testcase_06 AC 71 ms
71,300 KB
testcase_07 AC 71 ms
71,136 KB
testcase_08 AC 71 ms
71,276 KB
testcase_09 AC 71 ms
71,012 KB
testcase_10 WA -
testcase_11 AC 72 ms
71,112 KB
testcase_12 AC 72 ms
71,240 KB
testcase_13 AC 72 ms
71,324 KB
testcase_14 AC 71 ms
71,280 KB
testcase_15 AC 72 ms
71,112 KB
testcase_16 AC 71 ms
71,044 KB
testcase_17 WA -
testcase_18 AC 71 ms
71,188 KB
testcase_19 AC 73 ms
70,864 KB
testcase_20 AC 72 ms
71,084 KB
testcase_21 AC 73 ms
70,808 KB
testcase_22 AC 72 ms
71,296 KB
testcase_23 AC 72 ms
71,344 KB
testcase_24 AC 72 ms
70,952 KB
testcase_25 AC 71 ms
71,112 KB
testcase_26 AC 72 ms
71,384 KB
testcase_27 WA -
testcase_28 AC 73 ms
71,084 KB
testcase_29 AC 73 ms
71,176 KB
権限があれば一括ダウンロードができます

ソースコード

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)

sign = 1 if ret >= 0 else -1

d = abs(ret) // 10000000000
f = abs(ret) % 10000000000

d *= sign

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

0