結果
| 問題 | No.1048 Zero (Advanced) | 
| コンテスト | |
| ユーザー |  micheeeeell1001 | 
| 提出日時 | 2020-05-08 21:41:36 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 1,073 bytes | 
| コンパイル時間 | 3,149 ms | 
| コンパイル使用メモリ | 214,944 KB | 
| 最終ジャッジ日時 | 2025-01-10 08:24:41 | 
| ジャッジサーバーID (参考情報) | judge1 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 15 | 
ソースコード
#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define rep(i,x) for(ll i = 0; i < (ll)(x); i++)
#define rrep(i,x) for(ll i = (ll)(x)-1;0 <= i; i--)
#define reps(i,x) for(ll i = 1; i < (ll)(x)+1; i++)
#define rreps(i,x) for(ll i = (ll)(x); 1 <= i; i--)
#define debug(x) cerr << #x << ": " << (x) << "\n";
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
typedef pair<ll,ll> Pll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef vector<vector<vector<ll>>> vvvl;
const ll INF = numeric_limits<ll>::max()/4;
const int n_max = 1e5+10;
#define int ll
void YES(bool ok){
    cout << (ok ? "Yes" : "No") << endl;
}
signed main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    ll l,r; cin >> l >> r;
    ll m,k; cin >> m >> k;
    l *= k;
    r *= k;
    ll rm = r % m;
    ll lm = l % m;
    bool ok = false;
    if(r == l && rm == 0)ok = true;
    if(rm < lm)ok = true;
    if(lm <= rm){
        if(r - l >= m)ok = true;
        if(lm == 0)ok = true;
    }
    YES(ok);
}
            
            
            
        