結果

問題 No.384 マス埋めゲーム2
ユーザー tanimani364tanimani364
提出日時 2021-03-29 14:54:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 336 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 65,536 KB
最終ジャッジ日時 2024-05-06 23:11:45
合計ジャッジ時間 2,733 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
65,408 KB
testcase_01 AC 65 ms
65,280 KB
testcase_02 AC 68 ms
64,896 KB
testcase_03 AC 64 ms
65,408 KB
testcase_04 AC 68 ms
65,280 KB
testcase_05 AC 63 ms
65,024 KB
testcase_06 AC 61 ms
64,896 KB
testcase_07 AC 67 ms
64,896 KB
testcase_08 AC 63 ms
64,896 KB
testcase_09 AC 67 ms
64,896 KB
testcase_10 AC 68 ms
64,896 KB
testcase_11 AC 66 ms
64,896 KB
testcase_12 AC 69 ms
65,152 KB
testcase_13 AC 61 ms
65,152 KB
testcase_14 AC 67 ms
65,536 KB
testcase_15 AC 67 ms
65,408 KB
testcase_16 AC 60 ms
65,024 KB
testcase_17 AC 63 ms
64,896 KB
testcase_18 AC 61 ms
64,896 KB
testcase_19 AC 64 ms
65,152 KB
testcase_20 AC 63 ms
64,896 KB
testcase_21 AC 67 ms
65,408 KB
testcase_22 AC 61 ms
64,896 KB
testcase_23 AC 67 ms
65,280 KB
testcase_24 AC 68 ms
64,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
#coding:utf-8

import math
import string
import random
from sys import stdin
# import numpy as np
# from matplotlib import pyplot as plt
	

def main():
	read=stdin.readline

	#edit here!
	h,w,n,k=map(int,read().split())
	if (h+w-2)%n==k-1:
		print("YES")
	else:
		print("NO")


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