萤飘碎火
萤飘碎火
全部文章
分类
题解(33)
归档
标签
去牛客网
登录
/
注册
萤飘碎火的博客
全部文章
(共36篇)
题解 | #[NOIP2015]金币#
#include <stdio.h> int main() { int k; scanf("%d", &k); int jin = 0; for (int n = 1; n <=k ; n++) { int he =...
C
2022-06-28
1
286
题解 | #数位之和#
#include <stdio.h> #include <math.h> int main() { int n; scanf("%d", &n); int he = 0; for (int i = 0; i <= 9; i++)...
C
2022-06-28
1
278
题解 | #计算一元二次方程#
#include <stdio.h> #include <math.h> int main() { float a, b, c; int temp; while ((temp = scanf("%f %f %f", &a, &b, &...
C
2022-06-26
1
309
题解 | #计算商品打折结算金额#
#include <stdio.h> int main() { float money; scanf("%f", &money); if (money >= 5000) { money = 0.6 * money; ...
C
2022-06-25
1
237
题解 | #牛牛的快递#
#include <stdio.h> int main() { float a; char b; int money = 20; scanf("%f %c", &a, &b); if(a > 1) { ...
C
2022-06-25
1
233
题解 | #网购#
#include <stdio.h> int main() { float value; int mon, day ,count; scanf("%f %d %d %d", &value, &mon, &day, &count);...
C
2022-06-25
1
208
题解 | #统计数据正负个数#
int main() { int n, pos = 0, neg = 0; char a; while ((a = scanf("%d", &n)) != -1) { if (n > 0) { po...
C
2022-06-25
2
259
题解 | #牛牛的二三七整除#
int main() { int n , flag = 0; scanf("%d", &n); if (n % 2 == 0) { printf("2 "); flag++; } if (n % 3 == 0) ...
C
2022-06-25
3
228
题解 | #判断是不是字母#
int main() { char a; while( (a = getchar()) != -1) { if (a >= 'A' && a <= 'Z'||a >= 'a' && a <= 'z') ...
C
2022-06-25
1
357
题解 | #小乐乐找最大数#
int main() { int a, b, c, d, max; scanf("%d %d %d %d", &a, &b, &c, &d); max = a > b ? a : b; int maxtemp = c > d...
C
2022-06-25
1
307
首页
上一页
1
2
3
4
下一页
末页