結果

問題 No.384 マス埋めゲーム2
ユーザー 双六双六
提出日時 2020-08-11 04:38:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 373 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 81,992 KB
実行使用メモリ 61,712 KB
最終ジャッジ日時 2024-04-17 17:00:17
合計ジャッジ時間 2,247 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
60,032 KB
testcase_01 AC 46 ms
61,000 KB
testcase_02 AC 46 ms
61,668 KB
testcase_03 AC 46 ms
61,048 KB
testcase_04 AC 47 ms
60,300 KB
testcase_05 AC 48 ms
60,528 KB
testcase_06 AC 47 ms
61,508 KB
testcase_07 AC 45 ms
61,148 KB
testcase_08 AC 47 ms
60,580 KB
testcase_09 AC 47 ms
60,976 KB
testcase_10 AC 47 ms
61,568 KB
testcase_11 AC 46 ms
60,852 KB
testcase_12 AC 46 ms
61,356 KB
testcase_13 AC 48 ms
59,964 KB
testcase_14 AC 47 ms
61,336 KB
testcase_15 AC 48 ms
60,300 KB
testcase_16 AC 48 ms
61,360 KB
testcase_17 AC 48 ms
60,416 KB
testcase_18 AC 47 ms
60,804 KB
testcase_19 AC 47 ms
60,652 KB
testcase_20 AC 47 ms
61,712 KB
testcase_21 AC 48 ms
60,916 KB
testcase_22 AC 47 ms
60,780 KB
testcase_23 AC 46 ms
60,664 KB
testcase_24 AC 49 ms
60,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
import copy

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	H, W, N, K = getlist()
	if (H + W - 1) % N == K % N:
		print("YES")
	else:
		print("NO")

if __name__ == '__main__':
	main()
0