結果
| 問題 |
No.1048 Zero (Advanced)
|
| コンテスト | |
| ユーザー |
tran0826
|
| 提出日時 | 2020-03-24 14:30:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 749 bytes |
| コンパイル時間 | 853 ms |
| コンパイル使用メモリ | 99,184 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 16:38:14 |
| 合計ジャッジ時間 | 1,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
#include<iostream>
#include<vector>
#include<set>
#include<queue>
#include<map>
#include<algorithm>
#include<cstring>
#include<string>
#include<cassert>
#include<cmath>
#include<climits>
#include<iomanip>
#include<stack>
#include<unordered_map>
#include<bitset>
#include<limits>
#include<array>
using namespace std;
#define MOD 1000000007
#define rep(i,m,n) for(int (i)=(int)(m);i<(int)(n);i++)
#define REP(i,n) rep(i,0,n)
#define ll long long
#define ull unsigned long long
#define all(hoge) (hoge).begin(),(hoge).end()
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll l, r, m, k;
cin >> l >> r >> m >> k;
ll mn = l * k % m;
ll dif = r - l;
if ((m - mn) % m > dif* k)cout << "No" << "\n";
else cout << "Yes" << "\n";
return 0;
}
tran0826