#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
int main()
{
int input = 0;
int a = 0;
int b = 0;
int c = 0;
int d = 0;
scanf("%d", &input);
if (input % 2 == 0)
{
if (input >= 4 && input <= 12)
{
a = 1;
}
else
a = 0;
}
else
a = 0;
if (input % 2 == 0)
{
b = 1;
}
else
{
if (input >= 4 && input <= 12)
{
b = 1;
}
else
b = 0;
}
if (input % 2 == 0)
{
if (input >= 4 && input <= 12)
c = 0;
else
c = 1;
}
else
{
if (input >= 4 && input <= 12)
c = 1;
else
c = 0;
}
if (input % 2 == 0)
d = 0;
else
{
if (input >= 4 && input <= 12)
d = 0;
else
d = 1;
}
printf("%d %d %d %d", a, b, c, d);
return 0;
}
数字的性质
最新推荐文章于 2024-07-15 17:25:16 发布