結果
| 問題 | 
                            No.2776 Bigger image
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-06-07 22:06:57 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 599 bytes | 
| コンパイル時間 | 8,473 ms | 
| コンパイル使用メモリ | 333,664 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 08:11:25 | 
| 合計ジャッジ時間 | 7,562 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 25 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
using mint = modint998244353;
const int dx[4]={0,1,0,-1};
const int dy[4]={1,0,-1,0};
int a,b,h,w;
int main(){
    cin >> a >> b >> h >> w;
    double sonomama=min((double)a/h,(double)b/w);
    double kaiten=min((double)a/w,(double)b/h);
    if(a==b||sonomama==kaiten){
        cout<<"Same"<< endl;
    }else if(sonomama>kaiten){
        cout<<"Non-rotating"<< endl;
    }else{
        cout<<"Rotating"<< endl;
    }
    return 0;
}