結果

問題 No.2776 Bigger image
ユーザー KudeKude
提出日時 2024-06-07 21:31:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 88,576 KB
最終ジャッジ日時 2024-12-26 07:07:51
合計ジャッジ時間 5,309 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction
a, b = map(int, input().split())
h, w = map(int, input().split())
s1 = min(Fraction(h, a), Fraction(w, b))
s2 = min(Fraction(h, b), Fraction(w, a))
print('Non-rotating' if s1 > s2 else 'Rotating' if s1 < s2 else 'Same')
0