結果
| 問題 |
No.3354 有理数の大小比較
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-14 22:06:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 1,669 ms |
| コンパイル使用メモリ | 194,356 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-11-14 22:06:36 |
| 合計ジャッジ時間 | 2,907 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main () {
ll n1, d1, n2, d2;
cin >> n1 >> d1 >> n2 >> d2;
ll x1 = n1 * d2, x2 = n2 * d1;
cout << ((x1 == x2) ? "=" : (x1 < x2 ? "<" : ">")) << endl;
}