結果
| 問題 | 
                            No.2776 Bigger image
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-06-07 21:41:03 | 
| 言語 | C++23  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 537 bytes | 
| コンパイル時間 | 3,711 ms | 
| コンパイル使用メモリ | 255,696 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 07:29:37 | 
| 合計ジャッジ時間 | 4,731 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 25 | 
ソースコード
#pragma GCC optimize("O3")
#ifdef LOCAL
#include "algo/debug_ver3.hpp"
#else
#define debug(...)
#define debugArr(...)
#endif
#include <bits/stdc++.h>
using namespace std;
int main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	long long a, b, h, w;
	cin >> a >> b >> h >> w;
	long long x = min(h * h * b * b, w * w * a * a);
	long long y = min(h * h * a * a, w * w * b * b);
	string ans;
	if (x > y) {
		ans = "Non-rotating";
	}
	else if (x < y) {
		ans = "Rotating";
	}
	else {
		ans = "Same";
	}
	cout << ans << '\n';
}