結果
問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
ユーザー |
![]() |
提出日時 | 2017-06-15 18:39:24 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-25 02:23:13 |
合計ジャッジ時間 | 1,246 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 WA * 5 |
ソースコード
n = int(raw_input()) s = 0 for _ in range(n): t = raw_input() if t.find('.') != -1: i,j = t.split('.') else: i = t j = '0' s += int(i) * (10**10) if i[0] == '-': s -= int(j) * (10**(10-len(j))) else: s += int(j) * (10**(10-len(j))) print str(s)[:-10] + '.' + str(s)[-10:]