結果

問題 No.1048 Zero (Advanced)
ユーザー iqueue02
提出日時 2020-05-08 22:25:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 191,224 KB
最終ジャッジ日時 2025-01-10 08:57:12
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef pair<int,int> P;
constexpr int INF = 2e9;

int main() {
  int l, r, m, k;
  cin >> l >> r >> m >> k;
  if (k == 0 || l == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  if (l <= m/k && m/k <= r) {
    cout << "Yes" << endl;
    return 0;
  }
  if (l <= m * (k - 1) && m * (k - 1) <= r) {
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
  return 0;
}
0