結果
| 問題 | No.2776 Bigger image |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-06-07 21:40:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-12-26 07:26:46 |
| 合計ジャッジ時間 | 2,801 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
a,b=map(int,input().split())
h,w=map(int,input().split())
if h*b<=w*a:
s1,s2=h*h*b,a
else:
s1,s2=w*w*a,b
h,w=w,h
if h*b<=w*a:
t1,t2=h*h*b,a
else:
t1,t2=w*w*a,b
if s1*t2>t1*s2:
print("Non-rotating")
elif s1*t2<t1*s2:
print("Rotating")
else:
print("Same")
sasa8uyauya