結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2024-07-11 15:32:27 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 550 bytes |
| コンパイル時間 | 1,909 ms |
| コンパイル使用メモリ | 168,228 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-11 15:32:31 |
| 合計ジャッジ時間 | 3,748 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 24 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
int main() {
int a, b, h, w;
cin >> a >> b >> h >> w;
double rh = double(h) / a;
double s1 = rh * a * rh * b;
double rw = double(w) / b;
double s2 = rw * a * rw * b;
double s = min(s1, s2);
swap(a, b);
rh = double(h) / a;
s1 = rh * a * rh * b;
rw = double(w) / b;
s2 = rw * a * rw * b;
double sr = min(s1, s2);
string ans = "Same";
if(s > sr) ans = "Non-rotating";
if(s < sr) ans = "Rotating";
cout << ans << endl;
}
forest3