結果

問題 No.166 マス埋めゲーム
コンテスト
ユーザー a_ten
提出日時 2016-03-24 22:08:00
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 102 ms / 1,000 ms
コード長 134 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 77,600 KB
最終ジャッジ日時 2025-12-03 19:55:06
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding:utf-8

H,W,N,K=map(int,raw_input().split())

all=H*W
ans=all%N

if ans==K or (ans==0 and N==K):
	print 'YES'
else:
	print 'NO'
0