結果

問題 No.2776 Bigger image
ユーザー あじゃじゃあじゃじゃ
提出日時 2024-06-07 22:05:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2024-06-07 22:05:47
合計ジャッジ時間 2,093 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,904 KB
testcase_01 AC 35 ms
51,944 KB
testcase_02 AC 38 ms
52,356 KB
testcase_03 AC 37 ms
53,384 KB
testcase_04 AC 36 ms
52,676 KB
testcase_05 AC 35 ms
52,208 KB
testcase_06 AC 35 ms
52,096 KB
testcase_07 AC 36 ms
52,596 KB
testcase_08 AC 35 ms
52,772 KB
testcase_09 AC 33 ms
52,684 KB
testcase_10 AC 34 ms
52,676 KB
testcase_11 AC 39 ms
52,564 KB
testcase_12 AC 36 ms
52,216 KB
testcase_13 AC 36 ms
53,080 KB
testcase_14 AC 35 ms
52,576 KB
testcase_15 AC 35 ms
52,128 KB
testcase_16 AC 36 ms
52,200 KB
testcase_17 AC 34 ms
53,352 KB
testcase_18 AC 40 ms
51,960 KB
testcase_19 AC 35 ms
52,872 KB
testcase_20 AC 36 ms
53,292 KB
testcase_21 AC 35 ms
53,096 KB
testcase_22 AC 40 ms
52,548 KB
testcase_23 AC 35 ms
53,416 KB
testcase_24 AC 35 ms
52,360 KB
testcase_25 AC 36 ms
53,492 KB
testcase_26 AC 34 ms
52,564 KB
testcase_27 AC 36 ms
52,312 KB
testcase_28 AC 36 ms
52,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans1=A*B*min(H/A,W/B)
ans2=A*B*min(W/A,H/B)
if ans1>ans2:
    print("Non-rotating")
elif ans2>ans1:
    print("Rotating")
else:
    print("Same")
0