結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー とりゐとりゐ
提出日時 2023-06-06 14:35:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 1,373 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-08-28 10:41:44
合計ジャッジ時間 4,165 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,168 KB
testcase_01 AC 71 ms
71,320 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 72 ms
70,916 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 72 ms
71,084 KB
testcase_14 AC 72 ms
71,040 KB
testcase_15 WA -
testcase_16 WA -
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 71 ms
71,264 KB
testcase_26 AC 71 ms
70,912 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,284 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
res0,res1=0,0
for _ in range(n):
  x=input()
  if '.' in x:
    c0,c1=x.split('.')
    res0+=int(c0)
    res1+=int(c1+'0'*(10-len(c1)))
    
  else:
    res0+=int(x)

res0+=res1//(10**10)
res1%=10**10
res1=str(res1)
ans=str(res0)+'.'+'0'*(10-len(res1))+res1
print(ans)
0