結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:34:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 265 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-12-26 07:15:14 |
| 合計ジャッジ時間 | 2,794 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
a, b = map(int, input().split())
h ,w = map(int, input().split())
a1 = h/a
b1 = w/b
c1 = min(a1,b1)
s1 = c1*a*c1*b
a2 = w/a
b2 = h/b
c2 = min(a2,b2)
s2 = c2*a*c2*b
if s1 == s2:
print('Same')
elif s1 > s2:
print('Non-rotating')
else:
print('Rotating')