結果
| 問題 | No.3421 How Many Peaks? |
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2026-01-11 13:42:38 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 685 bytes |
| 記録 | |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 105,732 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-11 13:42:46 |
| 合計ジャッジ時間 | 1,448 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
// 自信ない
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <tuple>
#include <cstdio>
#include <cmath>
#include <cassert>
#include <atcoder/modint>
#define rep(i, n) for(i = 0; i < n; i++)
#define int long long
using namespace std;
using namespace atcoder;
using mint = modint998244353;
signed main() {
int T;
cin >> T;
while (T--) {
int a, b, c, d;
cin >> a >> b >> c >> d;
int A = 3 * a;
int B = 2 * b;
int C = c;
int D = B * B - 4 * A * C;
if (A != 0 && D > 0) { cout << "Yes" << endl; }
else { cout << "No" << endl; }
}
return 0;
}
startcpp