結果
| 問題 |
No.159 刺さらないUSB
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-06-14 03:53:14 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 1,000 ms |
| コード長 | 124 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-01 23:58:40 |
| 合計ジャッジ時間 | 2,642 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
コンパイルメッセージ
Syntax OK
ソースコード
pa,qa=STDIN.gets.split(" ")
pa=pa.to_f
qa=qa.to_f
p1=(1-pa)*qa
p2=pa*(1-qa)*qa
if p1<p2 then
puts "YES"
else
puts "NO"
end
horiesiniti