結果
問題 | 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 <= 100a = list(map(int, input().split()))assert n - 1 == len(a)x = 1000y = 1for i in a:assert 0 <= i <= 10x *= 1000 - iy *= 1000x = 1000 * y - xwhile x % 10 == 0:x //= 10y //= 10xx = str(x)m = len(str(x)) - len(str(y)) + 1print(xx[:m] + "." + xx[m:])