結果

問題 No.2776 Bigger image
ユーザー koukikawagoe
提出日時 2024-06-07 22:31:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-12-26 08:41:22
合計ジャッジ時間 2,842 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int, input().split())
H,W = map(int, input().split())

a = 0
b = 0
if H/B > W/A:
    a = (W/B*B)*(W/B*A)
else:a = (H/A*A)*(H/A*B)

if H/A > W/B:
    b = (W/A*A)*(W/A*B)
else:b = (H/B*B)*(H/B*A)
b = A*B

#print(a, b)
if a < b:
    print("Rotating")
elif a > b:
    print("Non-rotating")
else:print("Same")
print("")
0