結果
問題 | No.2776 Bigger image |
ユーザー |
![]() |
提出日時 | 2024-11-06 17:28:34 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 555 bytes |
コンパイル時間 | 15,490 ms |
コンパイル使用メモリ | 225,360 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 17:28:54 |
合計ジャッジ時間 | 16,595 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 4 WA * 21 |
ソースコード
package main import . "fmt" import . "math/big" func main() { var a,b,h,w int64 Scan(&a,&b,&h,&w) aa:=NewRat(a,1) bb:=NewRat(b,1) hh:=NewRat(h,1) ww:=NewRat(w,1) aabb:=new(Rat).Mul(aa,bb) s1:=new(Rat).Mul(aabb,new(Rat).Quo(ww,aa)) s2:=new(Rat).Mul(aabb,new(Rat).Quo(hh,bb)) s3:=new(Rat).Mul(aabb,new(Rat).Quo(ww,bb)) s4:=new(Rat).Mul(aabb,new(Rat).Quo(hh,aa)) if s1.Cmp(s2)>0 { s1=s2 } if s3.Cmp(s4)>0 { s3=s4 } switch s1.Cmp(s3) { case -1: Println("Rotating") case 0: Println("Same") case 1: Println("Non-rotating") } }