結果
| 問題 | No.2776 Bigger image |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:39:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 530 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-06-01 04:24:56 |
| 合計ジャッジ時間 | 5,656 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
A,B=list(map(float,input().split()))
H,W=list(map(float,input().split()))
def f(x,y):
x1=H
y1=H/x*y
s1=x1*y1
y2=W
x2=W/y*x
s2=x2*y2
return min(s1,s2)
s1=f(A,B)
s2=f(B,A)
if s1>s2:print("Non-rotating")
elif s1<s2:print("Rotating")
else:print("Same")