結果

問題 No.2776 Bigger image
ユーザー twooimp2twooimp2
提出日時 2024-06-08 13:18:23
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 3,458 ms
コンパイル使用メモリ 242,820 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-27 21:37:35
合計ジャッジ時間 4,686 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;

int main(){
  ld a,b,h,w;
  cin>>a>>b>>h>>w;
  ll n1=min(h*b*h/a,w*a*w/b);
  ll n2=min(h*a*h/b,w*b*w/a);
  if(n1>n2){
    cout<<"Non-rotating"<<endl;
  }else if(n1<n2){
    cout<<"Rotating"<<endl;
  }else{
    cout<<"Same"<<endl;
  }
}
0