結果
| 問題 |
No.2776 Bigger image
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:57:37 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 398 bytes |
| コンパイル時間 | 3,420 ms |
| コンパイル使用メモリ | 242,564 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 07:55:45 |
| 合計ジャッジ時間 | 4,292 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)n;i++)
int main(){
double a,b,h,w;
cin >> a >> b >> h >> w;
double sum=0;
double 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;
}