結果
問題 | No.159 刺さらないUSB |
ユーザー |
![]() |
提出日時 | 2017-12-13 09:52:15 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 569 bytes |
コンパイル時間 | 895 ms |
コンパイル使用メモリ | 103,808 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-07-02 00:06:14 |
合計ジャッジ時間 | 2,128 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_159 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); float p, q, p1, p2; p = float.Parse(s[0]); q = float.Parse(s[1]); p1 = (1 - p) * q; p2 = p * (1 - q) * q; if (p1 < p2) Console.WriteLine("YES"); else Console.WriteLine("NO"); Console.ReadLine(); } } }