結果
| 問題 | 
                            No.2776 Bigger image
                             | 
                    
| コンテスト | |
| ユーザー | 
                             NAMIDAIRO
                         | 
                    
| 提出日時 | 2024-06-07 21:43:45 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 18 ms / 2,000 ms | 
| コード長 | 911 bytes | 
| コンパイル時間 | 1,173 ms | 
| コンパイル使用メモリ | 111,860 KB | 
| 最終ジャッジ日時 | 2025-02-21 20:05:18 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 25 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <set>
#include <random>
#include <iomanip>
#include <string>
#include <cmath>
#include <complex>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); i++)
template<class T>
using vi = vector<T>;
template<class T>
using vii = vector<vi<T>>;
template<class T>
using viii = vector<vii<T>>;
template<class T>
using viiii = vector<viii<T>>;
using P = pair<ll, int>;
void chmin(ll & x, ll y) { x = min(x, y); }
void chmax(ll& x, ll y) { x = max(x, y); }
int main()
{
    ll a, b, h, w;
    cin >> a >> b >> h >> w;
    ll S0 = min(h * h * b * b, w * w * a * a);
    swap(a, b);
    ll S1 = min(h * h * b * b, w * w * a * a);
    if (S0 == S1) cout << "Same" << endl;
    else if (S0 > S1) cout << "Non-rotating" << endl;
    else cout << "Rotating" << endl;
    return 0;
}
            
            
            
        
            
NAMIDAIRO