結果
問題 |
No.2776 Bigger image
|
ユーザー |
|
提出日時 | 2024-06-07 21:41:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 81,976 KB |
実行使用メモリ | 88,576 KB |
最終ジャッジ日時 | 2024-12-26 07:30:21 |
合計ジャッジ時間 | 5,211 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
from fractions import Fraction A,B=map(int,input().split()) H,W=map(int,input().split()) non = Fraction(1<<60,1) non = min(non, Fraction(H,1)) non = min(non, Fraction(A*W,B)) A,B=B,A rot = Fraction(1<<60,1) rot = min(rot, Fraction(W,1)) rot = min(rot, Fraction(B*H,A)) # print(non, rot) if non==rot: print("Same") elif non>rot: print("Non-rotating") else: print("Rotating")