結果

問題 No.384 マス埋めゲーム2
ユーザー pengin_2000pengin_2000
提出日時 2021-09-26 12:36:54
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 27,140 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-19 02:51:13
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 AC 0 ms
4,384 KB
testcase_03 WA -
testcase_04 AC 1 ms
4,384 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,384 KB
testcase_11 AC 0 ms
4,384 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 0 ms
4,380 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 0 ms
4,380 KB
testcase_18 AC 0 ms
4,380 KB
testcase_19 AC 0 ms
4,380 KB
testcase_20 AC 1 ms
4,384 KB
testcase_21 AC 1 ms
4,384 KB
testcase_22 WA -
testcase_23 AC 1 ms
4,380 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	long long int h, w, n, k;
	scanf("%lld %lld %lld %lld", &h, &w, &n, &k);
	if ((h + w - 2) % n == k - 1)
		printf("YES\n");
	else
		printf("No\n");
	return 0;
}
0