結果
問題 | No.159 刺さらないUSB |
ユーザー | keymoon |
提出日時 | 2019-04-18 18:13:14 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 62 ms / 1,000 ms |
コード長 | 860 bytes |
コンパイル時間 | 3,405 ms |
コンパイル使用メモリ | 101,736 KB |
実行使用メモリ | 23,968 KB |
最終ジャッジ日時 | 2023-09-14 17:07:09 |
合計ジャッジ時間 | 5,573 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 61 ms
21,776 KB |
testcase_01 | AC | 61 ms
21,808 KB |
testcase_02 | AC | 61 ms
23,844 KB |
testcase_03 | AC | 61 ms
21,844 KB |
testcase_04 | AC | 61 ms
19,816 KB |
testcase_05 | AC | 60 ms
21,736 KB |
testcase_06 | AC | 62 ms
21,816 KB |
testcase_07 | AC | 61 ms
21,728 KB |
testcase_08 | AC | 61 ms
21,776 KB |
testcase_09 | AC | 62 ms
21,896 KB |
testcase_10 | AC | 60 ms
19,860 KB |
testcase_11 | AC | 61 ms
21,972 KB |
testcase_12 | AC | 62 ms
21,876 KB |
testcase_13 | AC | 61 ms
21,740 KB |
testcase_14 | AC | 62 ms
23,928 KB |
testcase_15 | AC | 61 ms
21,788 KB |
testcase_16 | AC | 61 ms
21,860 KB |
testcase_17 | AC | 61 ms
23,968 KB |
testcase_18 | AC | 61 ms
23,856 KB |
testcase_19 | AC | 60 ms
21,740 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using Debug = System.Diagnostics.Debug; using LayoutKind = System.Runtime.InteropServices.LayoutKind; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions; using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute; using System.Runtime.CompilerServices; static class P { static void Main() { var pq = Console.ReadLine().Split().Select(double.Parse).ToArray(); //裏→表 var p1 = (1 - pq[0]) * pq[1]; //表→裏→表 var p2 = pq[0] * (1 - pq[1]) * (pq[1]); Console.WriteLine(p1 < p2 ? "YES" : "NO"); } }