結果

問題 No.2776 Bigger image
ユーザー yuusaan
提出日時 2024-05-26 15:42:44
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 3,235 ms
コンパイル使用メモリ 243,132 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-24 17:47:26
合計ジャッジ時間 3,516 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

int main(){
    long long  A,B,H,W;
    cin >> A >> B;
    cin >> H >> W;
    long long nonrotate = min(B * B * H * H,A * A * W * W);
    long long rotate = min(A * A * H * H,B * B * W * W);
    if(nonrotate > rotate){
        cout << "Non-rotating" << endl;
    }
    else if(rotate > nonrotate){
        cout << "Rotating" << endl;
    }
    else{
        cout << "Same" << endl;
    }
    return 0;
}
0