結果

問題 No.2776 Bigger image
ユーザー kakao745kakao745
提出日時 2024-06-07 21:42:20
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 2,943 ms
コンパイル使用メモリ 244,468 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-26 07:30:44
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)n;i++)

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