結果
問題 |
No.1048 Zero (Advanced)
|
ユーザー |
![]() |
提出日時 | 2025-06-06 00:53:29 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 563 bytes |
コンパイル時間 | 3,306 ms |
コンパイル使用メモリ | 272,772 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-06 00:53:34 |
合計ジャッジ時間 | 4,382 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#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 (floor_div(x - 1, m) == floor_div(y, m)) { cout << "No" << '\n'; } else { cout << "Yes" << '\n'; } return 0; }