結果

問題 No.1048 Zero (Advanced)
ユーザー bal4u
提出日時 2021-08-12 13:32:55
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-10-01 18:21:03
合計ジャッジ時間 1,351 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

// yuki 1048 Zero (Advanced)
// 2021.8.12

#include <stdio.h>
typedef long long ll;

int main()
{
	int L, R, M, K, ans = 0;
	ll s, t;

	scanf("%d%d%d%d", &L, &R, &M, &K);
	if (L == 0) ans = 1;
	else {
		s = (ll)L*K, t = (ll)R*K;
		if (s % M == 0 || t % M) ans = 1;
		else ans = ((ll)L*K/M != t/M);
	}
	puts(ans? "Yes": "No");
	return 0;
}
0