一枚朱
一枚朱
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一枚朱的博客
全部文章
(共43篇)
题解 | #牛牛学数列3#
#include <stdio.h> int main() { int n; scanf("%d", &n); int k = -1;//-1的n次方作循环变量 double sum = 0.0; int s = 0; ...
2024-08-24
1
81
题解 | #牛牛学数列4#
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); int sum = 0; //外层循环变量 for (int i = 1; i <= n; i++) ...
2024-08-24
1
87
题解 | #牛牛学数列#
#include <stdio.h> int main() { int n; scanf("%d",&n);//分奇偶,数学思想 if (0 == n%2) { printf("%d",-n/2); ...
2024-08-23
1
70
题解 | #奇偶统计#
#include <stdio.h> int main() { int N =0; int x = 0;//表偶数 scanf("%d",&N); for (int i = 1;i<=N ; i++) { ...
2024-08-23
1
68
题解 | #计算一元二次方程#
#include <stdio.h> #include <math.h> int main() { double a, b, c; double x1 = 0.00, x2 = 0.00; //方程的根 double x =0.00,y=0.00;//...
2024-08-23
1
88
题解 | #小乐乐求和#
#include <stdio.h> int main() { long n = 0;//输入正整数 long sum = 0;//求和 scanf("%ld", &n); for (int i = 1 ; i <= n;...
2024-08-23
1
90
题解 | #获得月份天数#
#include <stdio.h> int main() { int year, month; while (scanf("%d %d", &year, &month) != EOF) { if ((year % ...
2024-08-23
1
71
题解 | #牛牛的计划#
#include <stdio.h> int main() { int y = 0,m = 0,d = 0; //开始学习时间 int y1 =0, m1 =0,d1 =0;//询问时间 scanf("%d %d %d",&y,&...
2024-08-22
1
79
题解 | #三角形判断#
#include <stdio.h> int main() { int a = 0, b = 0, c = 0; int t = 0; while (scanf("%d %d %d", &a, &b, &c) != E...
2024-08-22
1
103
题解 | #HTTP状态码#
#include <stdio.h> int main() { int a; while ( scanf("%d", &a) != EOF) { switch (a) { case 200: ...
2024-08-22
0
76
首页
上一页
1
2
3
4
5
下一页
末页