結果
| 問題 | No.1993 Horse Racing | 
| コンテスト | |
| ユーザー |  遭難者 | 
| 提出日時 | 2022-03-20 19:25:37 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 316 bytes | 
| コンパイル時間 | 234 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 79,616 KB | 
| 最終ジャッジ日時 | 2024-10-09 05:41:52 | 
| 合計ジャッジ時間 | 3,720 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 TLE * 1 -- * 1 | 
| other | -- * 23 | 
ソースコード
n = int(input())
assert 2 <= n <= 100
a = list(map(int, input().split()))
assert n - 1 == len(a)
x = 1000
y = 1
for i in a:
    assert 0 <= i <= 10
    x *= 1000 - i
    y *= 1000
x = 1000 * y - x
while x % 10 == 0:
    x //= 10
    y //= 10
xx = str(x)
m = len(str(x)) - len(str(y)) + 1
print(xx[:m] + "." + xx[m:])
            
            
            
        