結果

問題 No.2508 Discriminant
ユーザー ID 21712
提出日時 2024-11-13 15:51:04
言語 Go
(1.23.4)
結果
AC  
実行時間 447 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 14,597 ms
コンパイル使用メモリ 221,936 KB
実行使用メモリ 7,096 KB
最終ジャッジ日時 2024-11-13 15:51:21
合計ジャッジ時間 14,915 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"
import . "math/big"

func main() {
	a,p,q:=new(Int),new(Int),new(Int)
	Scan(a,p,q)
	b:=new(Int).Add(p,q)
	b.Mul(b,a)
	c:=new(Int).Mul(p,q)
	c.Mul(c,a)
	b.Mul(b,b)
	c.Mul(c,a).Mul(c,NewInt(4))
	if b.Cmp(c)>0 {
		Println("Yes")
	} else {
		Println("No")
	}
}
0