結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2024-07-11 16:39:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 486 bytes |
| コンパイル時間 | 1,795 ms |
| コンパイル使用メモリ | 166,472 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-11 16:39:05 |
| 合計ジャッジ時間 | 3,425 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
int main() {
ll a, b, h, w;
cin >> a >> b >> h >> w;
ll m = h * h, d = a * a;
if(m * b * b > w * w * d) {
m = w * w;
d = b * b;
}
swap(a, b);
ll m1 = h * h, d1 = a * a;
if(m1 * b * b > w * w * d1) {
m1 = w * w;
d1 = b * b;
}
string ans = "Same";
if(d1 * m > d * m1) ans = "Non-rotating";
if(d1 * m < d * m1) ans = "Rotating";
cout << ans << endl;
}
forest3