結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-04-25 04:57:39 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 112 bytes |
| コンパイル時間 | 307 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-14 01:13:19 |
| 合計ジャッジ時間 | 3,758 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i
xs=gets.split(" ").map{|e| (1000-e.to_f)/1000}
r=1.0
xs.each{|x|
r*=x
}
printf("%.10f",1000-1000*r)
horiesiniti