結果
問題 | No.1048 Zero (Advanced) |
ユーザー |
![]() |
提出日時 | 2020-05-27 21:49:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 1,548 ms |
コンパイル使用メモリ | 167,520 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 03:48:46 |
合計ジャッジ時間 | 2,299 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; using Graph=vector<vector<pair<int,int>>>; #define INF 1000000000000000000 #define MOD 1000000007 int main(){ ll L,R,M,K; cin>>L>>R>>M>>K; if(K*R-K*L>=M){ cout<<"Yes"<<endl; }else{ ll left=K*L%M; ll right=K*R%M; if(right<left||left==0){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } } }