結果
問題 | No.2776 Bigger image |
ユーザー |
![]() |
提出日時 | 2024-06-07 21:44:13 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 2,183 ms |
コンパイル使用メモリ | 199,400 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 07:33:43 |
合計ジャッジ時間 | 3,135 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ld = long double;int main() {ld a, b, h, w;cin >> a >> b >> h >> w;ld ans1 = min(h / a, w / b);ld ans2 = min(h / b, w / a);if (ans1 == ans2) {cout << "Same" << endl;} else if (ans1 > ans2) {cout << "Non-rotating" << endl;} else {cout << "Rotating" << endl;}}