結果

問題 No.3421 How Many Peaks?
コンテスト
ユーザー GOTKAKO
提出日時 2026-01-11 13:37:28
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 369 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,693 ms
コンパイル使用メモリ 210,644 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-01-11 13:37:35
合計ジャッジ時間 2,264 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int T; cin >> T;
    while(T--){
        int a,b,c,d; cin >> a >> b >> c >> d;
        if(a == 0){cout << "No\n"; continue;}
        a = a*3,b = b*2,c = c*1,d = d*0;
        if(b*b-4*a*c > 0) cout << "Yes\n";
        else cout << "No\n";
    }
}
0