結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 23:04:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 783 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2024-12-26 09:51:03 |
| 合計ジャッジ時間 | 2,985 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
a,b=map(int,input().split())
h,w=map(int,input().split())
t=h,a
if w*a<h*b:
t=w,b
u=h,b
if w*b<h*a:
u=w,a
if t[0]*u[1]==t[1]*u[0]:
print('Same')
elif t[0]*u[1]<t[1]*u[0]:
print('Rotating')
else:
print('Non-rotating')