結果

問題 No.2776 Bigger image
ユーザー moon17moon17
提出日時 2024-06-07 23:04:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 82,596 KB
実行使用メモリ 53,164 KB
最終ジャッジ日時 2024-06-07 23:04:17
合計ジャッジ時間 2,240 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,568 KB
testcase_01 AC 36 ms
52,660 KB
testcase_02 AC 36 ms
52,900 KB
testcase_03 AC 35 ms
52,232 KB
testcase_04 AC 35 ms
52,304 KB
testcase_05 AC 35 ms
52,908 KB
testcase_06 AC 37 ms
52,572 KB
testcase_07 AC 36 ms
51,928 KB
testcase_08 AC 36 ms
52,312 KB
testcase_09 AC 38 ms
52,356 KB
testcase_10 AC 36 ms
52,224 KB
testcase_11 AC 36 ms
52,940 KB
testcase_12 AC 36 ms
52,200 KB
testcase_13 AC 36 ms
52,440 KB
testcase_14 AC 37 ms
53,164 KB
testcase_15 AC 37 ms
51,496 KB
testcase_16 AC 37 ms
52,304 KB
testcase_17 AC 40 ms
52,436 KB
testcase_18 AC 38 ms
52,688 KB
testcase_19 AC 36 ms
52,204 KB
testcase_20 AC 35 ms
52,072 KB
testcase_21 AC 36 ms
52,816 KB
testcase_22 AC 36 ms
53,096 KB
testcase_23 AC 36 ms
52,172 KB
testcase_24 AC 36 ms
51,740 KB
testcase_25 AC 37 ms
52,496 KB
testcase_26 AC 37 ms
52,508 KB
testcase_27 AC 37 ms
52,620 KB
testcase_28 AC 35 ms
52,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
h,w=map(int,input().split())
t=h,a
if w*a<h*b:
  t=w,b
u=h,b
if w*b<h*a:
  u=w,a
if t[0]*u[1]==t[1]*u[0]:
  print('Same')
elif t[0]*u[1]<t[1]*u[0]:
  print('Rotating')
else:
  print('Non-rotating')
0