羊客202
羊客202
全部文章
分类
归档
标签
去牛客网
登录
/
注册
羊客202的博客
全部文章
(共42篇)
题解 | #牛牛的计划#
#include <stdio.h> int main() { int y = 0, m = 0, d = 0, y1 = 0, m1 = 0, d1 = 0; scanf("%d%d%d%d%d%d", &y, &m, &d, &...
2023-10-20
0
215
题解 | #HTTP状态码#
#include <stdio.h> int main() { int n = 0; while (scanf("%d", &n) != EOF) { switch (n) { case 200:printf("OK\n");...
2023-10-20
1
210
题解 | #牛牛的一周#
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); switch (n) { case 1:printf("Monday"); break; case 2:p...
2023-10-20
1
178
题解 | #牛牛的金币#
#include <stdio.h> int main() { int x, y, x1, y1; scanf("%d%d%d%d", &x, &y, &x1, &y1); if (y1 - y == 1) ...
2023-10-20
1
220
题解 | #牛牛的通勤#
#include <stdio.h> int main() { int d = 0; float time_w = 0.0f, time_c = 0.0f; scanf("%d", &d); time_w = d; time_c = 10.0 +...
2023-10-20
1
200
题解 | #计算商品打折结算金额#
#include<stdio.h> int main() { int price = 0; float cost = 0.0f; scanf("%d", &price); if (price < 100) cost = price; e...
2023-10-20
1
250
题解 | #牛牛的快递#
#include <stdio.h> int main() { float a = 0.0f; char b = 0; int cost = 20; scanf("%f %c", &a, &b); //输入格式两者间要有空格,不然空格会被字...
2023-10-20
1
172
题解 | #统计数据正负个数#
#include <stdio.h> int main() { int arr[10] = { 0 }, i = 0, po = 0, ne = 0; for (i = 0; i < 10; i++) { scanf("%d",...
2023-10-20
1
198
题解 | #牛牛的二三七整除#
#include <stdio.h> int main() { int a = 0; scanf("%d", &a); if (a % 2 == 0) printf("2 "); if (...
2023-10-20
1
202
题解 | #三角形判断#
#include<stdio.h> int main() { int a = 0, b = 0, c = 0; while (scanf("%d%d%d", &a, &b, &c)!= EOF) { //1.判断能否构成三角...
2023-10-15
1
237
首页
上一页
1
2
3
4
5
下一页
末页