結果
問題 | 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=Hy1=H/x*ys1=x1*y1y2=Wx2=W/y*xs2=x2*y2return 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")