結果

問題 No.2776 Bigger image
ユーザー yuusaan
提出日時 2024-05-01 11:48:09
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 443 bytes
コンパイル時間 3,119 ms
コンパイル使用メモリ 242,704 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 17:46:57
合計ジャッジ時間 4,165 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

int main(){
    int 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