結果
問題 | No.2776 Bigger image |
ユーザー |
![]() |
提出日時 | 2024-06-07 21:44:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 2,013 ms |
コンパイル使用メモリ | 193,940 KB |
最終ジャッジ日時 | 2025-02-21 20:05:48 |
ジャッジサーバーID (参考情報) |
judge1 / 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; } }