結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー pengin_2000
提出日時 2019-07-05 19:55:11
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 28,416 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 04:46:11
合計ジャッジ時間 1,338 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	int n, m;
	scanf("%d%d", &n, &m);
	if (n % 2 == 1)
	{
		if (m < 10)
			printf("No\n");
		else if (m % 2 == 0)
			printf("Yes\n");
		else
			printf("No\n");
	}
	else if (m % 2 == 1)
		printf("No\n");
	else
		printf("Yes\n");
	return 0;
}
0