結果

問題 No.3421 How Many Peaks?
コンテスト
ユーザー Kude
提出日時 2026-01-11 13:48:09
言語 PyPy3
(7.3.17)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 216 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 284 ms
コンパイル使用メモリ 82,716 KB
実行使用メモリ 76,736 KB
最終ジャッジ日時 2026-01-11 13:48:13
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def solve(a, b, c, d):
    if a == 0:
        return False
    # f'(x) = 3ax^2 + 2bx + c
    return b * b - 3 * a * c > 0

for _ in range(int(input())):
    print('Yes' if solve(*map(int, input().split())) else 'No')
0