While1729
While1729
全部文章
分类
归档
标签
去牛客网
登录
/
注册
consistant 665
believe
全部文章
(共22篇)
题解 | while input与target对比
#include <stdio.h> #include<string.h> int main() { char target[]="while"; char input[6]; scanf("%5s",input...
2025-11-20
0
7
题解 | 二维斐波那契数列 求逆元
#include <stdio.h> #include <stdlib.h> #define MOD 1000000007 #define MAX_N 2000 // 因为 n,m ≤ 1000,所以 n+m-2 ≤ 1998 // 全局数组:存储阶乘和阶乘的逆元 lo...
2025-11-20
0
8
题解 | 杨辉三角 朴实的二项式递推
#include <stdio.h> int main() { int n; scanf("%d", &n); // 读取输入的行数n for (int i = 0; i < n; i++) { // 遍历每一行(i为行号,...
2025-11-20
0
6
题解 | 有序序列合并 指针比较排序
#include <stdio.h> #include<stdlib.h> int main(){ int n, m; scanf("%d %d", &n, &m); int*a1=(int*)malloc(n*si...
2025-11-20
0
8
题解 | 序列中整数去重 双指针
#include<stdio.h> #include<string.h> int main(){ int n; int a[1001],b[5001]; memset(b,0,sizeof(b)); scanf("%d",&...
2025-11-20
0
8
题解 | 牛牛的快递 嵌套
#include<stdio.h> int main(){ float a; char b; scanf("%f %c",&a,&b); int price=20+(b=='y'?5:0)+(a>1?(int)(a-1)+((a-...
2025-11-19
0
10
题解 | 健康评估 存储数组
#include <stdio.h> int main() { float weight, height; scanf("%f %f", &weight, &height); float bmi = weight /...
2025-11-19
0
7
题解 | 四季 季节表
#include <stdio.h> int main() { int date; scanf("%d", &date); int month = date % 100; // 用数组存储月份对应的季节索引 int s...
2025-11-19
0
8
题解 | 牛牛数数 依旧是链表
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> // 定义结果存储结构(链表节点) typedef struct Node { int data; struct Node* ...
2025-11-19
0
10
题解 | 奇偶统计 链表
#include <stdio.h> #include <stdlib.h> // 定义链表节点结构 typedef struct Node { int data; // 节点存储的数字 struct Node* next; // 指向后一...
2025-11-19
0
7
首页
上一页
1
2
3
下一页
末页