結果
問題 | No.1993 Horse Racing |
ユーザー |
![]() |
提出日時 | 2022-03-20 19:25:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,700 KB |
最終ジャッジ日時 | 2024-10-09 05:41:59 |
合計ジャッジ時間 | 3,669 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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:])