結果

問題 No.3421 How Many Peaks?
コンテスト
ユーザー のびるくん
提出日時 2026-01-11 13:39:42
言語 Java
(openjdk 25.0.1)
結果
AC  
実行時間 398 ms / 2,000 ms
コード長 482 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,558 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 53,636 KB
最終ジャッジ日時 2026-01-11 13:40:14
合計ジャッジ時間 6,654 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int t = s.nextInt();
		for (int tt = 0; tt < t; tt++) {
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();
			int d = s.nextInt();
			if(a==0) {
				System.out.println("No");
				continue;
			}
			int D = 4 * b * b - 12 * a * c;
			if (D > 0) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}
}
0