結果
| 問題 | No.1993 Horse Racing |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-04-25 04:57:39 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 112 bytes |
| 記録 | |
| コンパイル時間 | 525 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-09 15:32:47 |
| 合計ジャッジ時間 | 4,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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