結果
| 問題 | No.3354 有理数の大小比較 |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-11-17 00:38:16 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 340µs | |
| コード長 | 499 bytes |
| 記録 | |
| コンパイル時間 | 2,054 ms |
| コンパイル使用メモリ | 328,648 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-16 16:34:45 |
| 合計ジャッジ時間 | 3,841 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
ll a, b, c, d;
cin >> a >> b >> c >> d;
auto ans = a * d <=> b * c;
if (ans == strong_ordering::less) {
cout << '<' << '\n';
}
if (ans == strong_ordering::equal) {
cout << '=' << '\n';
}
if (ans == strong_ordering::greater) {
cout << '>' << '\n';
}
return 0;
}
a01sa01to