結果

問題 No.2776 Bigger image
ユーザー 👑 rin204
提出日時 2024-06-07 21:25:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,056 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-12-26 06:54:11
合計ジャッジ時間 2,185 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
h, w = map(int, input().split())
a *= h * w
b *= h * w

c1 = min(a // h, b // w)
c2 = min(a // w, b // h)

if c1 > c2:
    print("Non-rotating")
elif c1 == c2:
    print("Same")
else:
    print("Rotating")
0