結果
| 問題 | No.3421 How Many Peaks? |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2026-01-14 22:06:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 2,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 76,680 KB |
| 最終ジャッジ日時 | 2026-01-14 22:06:08 |
| 合計ジャッジ時間 | 2,044 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
def solve():
a, b, c, d = map(int, input().split())
if a == 0:
return False
# f' = 3a x^2 + 2b x + c
s = (2 * b) ** 2 - 4 * (3 * a) * c
return s > 0
T = int(input())
for i in range(T):
ans = solve()
if ans:
print('Yes')
else:
print('No')
norioc