直接写就得了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,a,b,c; for(i=2;i<1000;i++) …… 题解列表 2024年11月21日 0 点赞 0 评论 516 浏览 评分:0.0
放心饮用,可以当作以后的模板 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a,sum=0; scanf("%d",&a); for(int i=2;i*i<=a;i++){ …… 题解列表 2024年11月21日 0 点赞 0 评论 510 浏览 评分:9.9
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[150]; char b[51]; gets(a); gets(b); …… 题解列表 2024年11月20日 1 点赞 0 评论 759 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,b=0,c=0,d=0,e=0; char a[201]; gets(a); …… 题解列表 2024年11月20日 1 点赞 0 评论 1148 浏览 评分:9.0
3022: 流感传染一眼丁真 摘要:解题思路: 遍历数组s在哪有@,有就在另一个数组上标记为1;数组s遍历完后,遍历数组a,在有标记的位置对应数组s[ i ][ j ],后判断是s[ i ][ j ]四个方向是否能被感染;…… 题解列表 2024年11月20日 1 点赞 0 评论 581 浏览 评分:0.0
小白练习运用递归来写等差数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fab(int x){//递归算法if(x==1)//结束递归的条件return 3*x-1;elsereturn 3*x-1+…… 题解列表 2024年11月20日 0 点赞 0 评论 597 浏览 评分:10.0
关键词:指针、数组和函数之间地址的传递 摘要:参考代码:#include <stdio.h> #include <math.h> #include <string.h> void sort(char **p,int n) //用于排序的…… 题解列表 2024年11月20日 2 点赞 0 评论 616 浏览 评分:0.0
最适合新手宝宝体质的题解 摘要:解题思路:方法二注意:最小公倍数=x*y/最大公约数(a)注意事项:参考代码://方法二#include#includeint main() { int x,y; scanf("%d %d",&x,&…… 题解列表 2024年11月20日 3 点赞 0 评论 1107 浏览 评分:9.9
数组法数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int F(int arr[],int j,int k){ int b[k]; for(int i=0;i<k;i++) { b[i]…… 题解列表 2024年11月20日 1 点赞 0 评论 541 浏览 评分:0.0
2919: 奖学金(sort和自定义降序函数) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef struct student { int score; int ch…… 题解列表 2024年11月20日 1 点赞 0 评论 529 浏览 评分:9.9