結果

問題 No.159 刺さらないUSB
ユーザー mbanmban
提出日時 2016-11-07 09:41:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 417 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 103,860 KB
実行使用メモリ 22,884 KB
最終ジャッジ日時 2023-09-14 16:54:24
合計ジャッジ時間 4,179 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
18,668 KB
testcase_01 AC 60 ms
20,728 KB
testcase_02 AC 59 ms
20,728 KB
testcase_03 AC 58 ms
20,740 KB
testcase_04 AC 59 ms
22,712 KB
testcase_05 AC 59 ms
20,628 KB
testcase_06 AC 59 ms
20,728 KB
testcase_07 AC 59 ms
20,796 KB
testcase_08 AC 58 ms
20,852 KB
testcase_09 AC 59 ms
20,808 KB
testcase_10 AC 59 ms
20,652 KB
testcase_11 AC 59 ms
20,752 KB
testcase_12 AC 60 ms
22,760 KB
testcase_13 AC 58 ms
22,884 KB
testcase_14 AC 59 ms
20,736 KB
testcase_15 AC 58 ms
18,600 KB
testcase_16 AC 58 ms
20,644 KB
testcase_17 AC 58 ms
20,660 KB
testcase_18 AC 59 ms
20,716 KB
testcase_19 AC 58 ms
20,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Magatro
{
    static void Main()
    {
        string[] s = Console.ReadLine().Split(' ');
        double p, q;
        p = double.Parse(s[0]);
        q = double.Parse(s[1]);
        double P1, P2;
        P1 = (1.0 - p) * q;
        P2 = p * (1.0 - q) * q;
        string ans = P1 < P2 ? "YES" : "NO";
        Console.WriteLine(ans);
    }
}
0