結果
| 問題 | No.81 すべて足すだけの簡単なお仕事です。 |
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2017-01-26 01:37:57 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 450 bytes |
| 記録 | |
| コンパイル時間 | 435 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-05-29 10:46:58 |
| 合計ジャッジ時間 | 4,457 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 5 |
ソースコード
from functools import reduce
def convert(x):
s = x.split('.')
if len(s) == 2:
while len(s[1]) < 10:
s[1] += '0'
if s[0][0] == '-':
return int(s[0]) * 10**10 - int(s[1])
else:
return int(s[0]) * 10**10 + int(s[1])
else:
return int(s[0]) * 10**10
n = int(input())
ans = str(reduce(lambda x,y:x+y,[convert(input()) for i in range(n)]))
print(ans[:-10] + '.' + ans[-10:])
h_noson