代码拉取完成,页面将自动刷新
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int x, y, x1, y1;
scanf("%d %d", &x, &y);
scanf("%d %d", &x1, &y1);
if (y1 > y)
printf("u");
else if (y1 < y)
printf("d");
else if (x1 > x)
printf("r");
else
printf("i");
return 0;
}
#include <stdio.h>
int main()
{
int n = 0;
scanf("%d", &n);
switch (n)
{
case 1:
printf("Monday");
break;
case 2:
printf("Tuesday");
break;
case 3:
printf("Wednesday");
break;
case 4:
printf("Thursday");
break;
case 5:
printf("Friday");
break;
case 6:
printf("Saturday");
break;
case 7:
printf("Sunday");
break;
}
return 0;
}
#include <stdio.h>
int main()
{
int n = 0;
while (~scanf("%d", &n))
{
switch (n)
{
case 200:
printf("OK\n");
break;
case 202:
printf("Accepted\n");
break;
case 400:
printf("Bad Request\n");
break;
case 403:
printf("Forbidden\n");
break;
case 404:
printf("Not Found\n");
break;
case 500:
printf("Internal Server Error\n");
break;
case 502:
printf("Bad Gateway\n");
break;
}
}
return 0;
}
#include <stdio.h>
int main()
{
int n = 0;
while (~scanf("%d", &n))
{
if (n > 0)
printf("1\n");
else if (n == 0)
printf("0.5\n");
else
printf("0\n");
}
return 0;
}
#include <stdio.h>
int main()
{
int a = 1, b = 1, c = 1;
while (~scanf("%d %d %d", &a, &b, &c))
{
if (a + b > c && a + c > b && b + c > a)
{
if (a == b && b == c)
{
printf("Equilateral triangle!\n");
}
else if (a == b || b == c || a == c)
{
printf("Isosceles triangle!\n");
}
else
{
printf("Ordinary triangle!\n");
}
}
else
{
printf("Not a triangle!\n");
}
}
return 0;
}
#include <stdio.h>
int main()
{
int y, m, d, y1, m1, d1;
scanf("%d %d %d", &y, &m, &d);
scanf("%d %d %d", &y1, &m1, &d1);
if (y1 > y)
printf("yes");
else if (y1 == y)
{
if (m1 > m)
printf("yes");
else if (m1 == m)
{
if (d1 >= d)
printf("yes");
else
printf("no");
}
else
printf("no");
}
else
printf("no");
return 0;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。