結果
| 問題 |
No.2508 Discriminant
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-20 21:42:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 946 bytes |
| コンパイル時間 | 4,159 ms |
| コンパイル使用メモリ | 228,836 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-20 17:52:46 |
| 合計ジャッジ時間 | 4,938 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using ll = long long;
using ld = long double;
using st = string;
using mint = atcoder::modint998244353;
using Mint = atcoder::modint1000000007;
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define vb vector<bool>
#define vs vector<string>
#define chmax(n,v) n=n<v?v:n
#define chmin(n,v) n=n>v?v:n
#define all(n) begin(n),end(n)
#define rev(n) reverse(all(n))
#define sor(n) stable_sort(all(n))
#define rep(i,n) for(ll i=0;i<(n);++i)
#define rrep(i,a,n) for(ll i=a;i<(n);++i)
#define sz(n) n.size()
#define bit(n,shift) ((n&(1<<shift))!=0)
template <typename T> void input(T &a) { cin >> a; };
template <typename T1, typename... T2> void input(T1&a, T2 &...b) { cin >> a; input(b...); };
const ll inf = 1e18;
int main(){
ll a,p,q;
cin >> a >> p >> q;
ll b=-a*(p+q);
ll c=a*p*q;
if(b*b>4*a*c) cout << "Yes";
else cout << "No";
cout << q;
}