結果

問題 No.3354 有理数の大小比較
コンテスト
ユーザー テナガザル
提出日時 2025-11-14 21:25:27
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 829 ms
コンパイル使用メモリ 110,744 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2025-11-14 21:25:29
合計ジャッジ時間 2,102 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>

using namespace std;

int main()
{
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  cout << (a * d > b * c ? ">" : (a * d == b * c ? "=" : "<")) << endl;
}
0