結果
| 問題 | No.3421 How Many Peaks? |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2026-01-11 17:28:25 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 394 bytes |
| 記録 | |
| コンパイル時間 | 391 ms |
| コンパイル使用メモリ | 52,976 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 17:28:27 |
| 合計ジャッジ時間 | 977 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3421.cc: No.3421 How Many Peaks? - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* main */
int main() {
int tn;
scanf("%d", &tn);
while (tn--) {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
a *= 3, b *= 2;
if (a != 0 && b * b - 4 * a * c > 0) puts("Yes");
else puts("No");
}
return 0;
}
tnakao0123