結果

問題 No.384 マス埋めゲーム2
ユーザー tanimani364tanimani364
提出日時 2021-03-29 14:54:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 1,000 ms
コード長 336 bytes
コンパイル時間 763 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 80,900 KB
最終ジャッジ日時 2023-08-19 16:10:25
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
80,692 KB
testcase_01 AC 137 ms
80,604 KB
testcase_02 AC 138 ms
80,676 KB
testcase_03 AC 135 ms
80,900 KB
testcase_04 AC 137 ms
80,812 KB
testcase_05 AC 141 ms
80,600 KB
testcase_06 AC 136 ms
80,584 KB
testcase_07 AC 139 ms
80,688 KB
testcase_08 AC 138 ms
80,600 KB
testcase_09 AC 141 ms
80,784 KB
testcase_10 AC 142 ms
80,300 KB
testcase_11 AC 147 ms
80,672 KB
testcase_12 AC 134 ms
80,804 KB
testcase_13 AC 142 ms
80,684 KB
testcase_14 AC 153 ms
80,684 KB
testcase_15 AC 144 ms
80,616 KB
testcase_16 AC 135 ms
80,728 KB
testcase_17 AC 142 ms
80,676 KB
testcase_18 AC 137 ms
80,724 KB
testcase_19 AC 135 ms
80,712 KB
testcase_20 AC 138 ms
80,604 KB
testcase_21 AC 137 ms
80,548 KB
testcase_22 AC 138 ms
80,832 KB
testcase_23 AC 138 ms
80,328 KB
testcase_24 AC 139 ms
80,744 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