結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:39:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 81,924 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-12-26 07:24:51 |
| 合計ジャッジ時間 | 2,370 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")