結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-11-06 17:47:15 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 555 bytes |
| コンパイル時間 | 16,026 ms |
| コンパイル使用メモリ | 223,840 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 17:47:34 |
| 合計ジャッジ時間 | 17,121 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)
_=aabb
s1:=new(Rat).Mul(ww,new(Rat).Quo(ww,aa))
s2:=new(Rat).Mul(hh,new(Rat).Quo(hh,bb))
s3:=new(Rat).Mul(ww,new(Rat).Quo(ww,bb))
s4:=new(Rat).Mul(hh,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")
}
}
ID 21712