結果

問題 No.2508 Discriminant
ユーザー k kk k
提出日時 2023-11-18 22:02:33
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 4,829 ms
コンパイル使用メモリ 32,160 KB
実行使用メモリ 32,668 KB
最終ジャッジ日時 2023-11-18 22:02:41
合計ジャッジ時間 7,556 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
32,668 KB
testcase_01 AC 42 ms
32,668 KB
testcase_02 AC 42 ms
32,668 KB
testcase_03 AC 43 ms
32,668 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 41 ms
32,668 KB
testcase_07 AC 42 ms
32,668 KB
testcase_08 AC 41 ms
32,668 KB
testcase_09 AC 42 ms
32,668 KB
testcase_10 WA -
testcase_11 AC 41 ms
32,668 KB
testcase_12 AC 42 ms
32,668 KB
testcase_13 AC 42 ms
32,668 KB
testcase_14 AC 41 ms
32,668 KB
testcase_15 WA -
testcase_16 AC 41 ms
32,668 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 41 ms
32,668 KB
testcase_20 AC 41 ms
32,668 KB
testcase_21 AC 41 ms
32,668 KB
testcase_22 AC 41 ms
32,668 KB
testcase_23 WA -
testcase_24 AC 41 ms
32,668 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input = explode(' ', trim(fgets(STDIN)));
// b2>4ac ならば Yes を、そうでないならば No

$a = $input[0];
$p = $input[1];
$q = $input[2];

$b = $a*((-1*$p)+(-1*$q));
$c = $a*$p*$q;

if (($b*$b) > (4*$a*$c)) {
    echo "Yes";   
} else {
    echo "No";
}
0