結果

問題 No.384 マス埋めゲーム2
ユーザー mkawa2mkawa2
提出日時 2020-05-24 15:46:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 821 bytes
コンパイル時間 891 ms
コンパイル使用メモリ 10,904 KB
実行使用メモリ 8,924 KB
最終ジャッジ日時 2023-08-01 23:48:23
合計ジャッジ時間 2,504 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 21 ms
8,756 KB
testcase_02 AC 19 ms
8,716 KB
testcase_03 AC 18 ms
8,736 KB
testcase_04 AC 19 ms
8,760 KB
testcase_05 AC 18 ms
8,856 KB
testcase_06 AC 18 ms
8,888 KB
testcase_07 AC 18 ms
8,868 KB
testcase_08 AC 18 ms
8,848 KB
testcase_09 AC 19 ms
8,736 KB
testcase_10 AC 19 ms
8,756 KB
testcase_11 AC 18 ms
8,812 KB
testcase_12 AC 19 ms
8,792 KB
testcase_13 AC 19 ms
8,784 KB
testcase_14 AC 19 ms
8,864 KB
testcase_15 AC 18 ms
8,700 KB
testcase_16 AC 18 ms
8,740 KB
testcase_17 AC 18 ms
8,732 KB
testcase_18 AC 19 ms
8,788 KB
testcase_19 AC 19 ms
8,924 KB
testcase_20 WA -
testcase_21 AC 18 ms
8,872 KB
testcase_22 AC 19 ms
8,844 KB
testcase_23 AC 19 ms
8,776 KB
testcase_24 AC 19 ms
8,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from operator import itemgetter
from itertools import *
from bisect import *
from collections import *
from heapq import *
import math
import sys

sys.setrecursionlimit(10 ** 6)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def SI(): return sys.stdin.readline()[:-1]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
int1 = lambda x: int(x) - 1
def MI1(): return map(int1, sys.stdin.readline().split())
def LI1(): return list(map(int1, sys.stdin.readline().split()))
p2D = lambda x: print(*x, sep="\n")
dij = [(1, 0), (0, 1), (-1, 0), (0, -1)]

def main():
    h,w,n,k=MI()
    print("YES" if (h+w-1)%n==k else "NO")

main()
0