結果
問題 |
No.1048 Zero (Advanced)
|
ユーザー |
![]() |
提出日時 | 2025-06-06 00:51:04 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 569 bytes |
コンパイル時間 | 3,423 ms |
コンパイル使用メモリ | 273,268 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-06 00:51:09 |
合計ジャッジ時間 | 4,739 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; inline ll floor_div(ll a, ll b) { return a / b - (a % b < 0); } int main() { cin.tie(nullptr)->sync_with_stdio(false); ll l, r, m, k; cin >> l >> r >> m >> k; ll x = l * k, y = r * k; if (k != 0 && floor_div(x, m) == floor_div(y, m)) { cout << "No" << '\n'; } else { cout << "Yes" << '\n'; } return 0; }