結果
| 問題 | No.3421 How Many Peaks? |
| コンテスト | |
| ユーザー |
SnowBeenDiding
|
| 提出日時 | 2026-01-11 14:32:14 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 653 bytes |
| 記録 | |
| コンパイル時間 | 9,117 ms |
| コンパイル使用メモリ | 420,852 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-11 14:32:27 |
| 合計ジャッジ時間 | 9,664 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#include <atcoder/all>
#define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
using namespace atcoder;
using namespace std;
typedef long long ll;
void solve() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a == 0) {
cout << "No\n";
return;
}
int A = a * 3;
int B = b * 2;
int C = c;
int det = B * B - 4 * A * C;
cout << (det > 0 ? "Yes" : "No") << '\n';
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
while (t--) solve();
}
SnowBeenDiding