【编程入门】字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char ch[200]; //字符串的定义 …… 题解列表 2024年04月17日 0 点赞 0 评论 179 浏览 评分:0.0
使用结构体进行解题,做的有点麻烦,调用了strcmp比较字符串大小和strcpy复制字符串 摘要:解题思路:结构体注意事项:参考代码:#include<stdio.h> #include<string.h>struct hdjvh{ char a[100]; char b[100]; char c…… 题解列表 2024年04月17日 0 点赞 0 评论 248 浏览 评分:9.9
有规律的数列求和(数组法) 摘要: 一、解题思路 我们先观察题目中的分数的分子分母的数字,1,2,3,5,8,13,...... 我们可以发现,从第三个数字开始,后面一个数字是前面的两个数字之和。然后看分数…… 题解列表 2024年04月17日 0 点赞 0 评论 165 浏览 评分:9.9
【编程入门】筛选N以内的所有素数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i,N,j,a; scanf("%d",&N); for(i=2…… 题解列表 2024年04月17日 0 点赞 0 评论 112 浏览 评分:0.0
【编程入门】数字的处理和判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[10]; int i,we…… 题解列表 2024年04月17日 0 点赞 0 评论 409 浏览 评分:0.0
【编程入门】密码破译 摘要:解题思路:破译之后的密码是在为破译的密码在ASCII的值上加4注意事项:if(a[i]=='\n')break;要注意添加这一段程序,就可以在输入回车之后,跳出遍历数组a的循环参考代码…… 题解列表 2024年04月17日 1 点赞 0 评论 495 浏览 评分:0.0
辗转相除法 摘要:解题思路: 先计算最大公约数,再计算最小公倍数,然后验证是否准确注意事项: 无参考代码:#include <stdio.h>//辗转相除法int main(void){ int in…… 题解列表 2024年04月17日 0 点赞 0 评论 221 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:废话不多说,直接看代码注意事项:▲ < 0 时,方程没有实数根,但是会有2个共轭复根参考代码:#include<stdio.h>#include<math.h>void q_gen(doub…… 题解列表 2024年04月17日 0 点赞 1 评论 156 浏览 评分:9.9
信息学奥赛一本通T1264-合唱队形 摘要:解题思路:双向最长上升/下降子序列注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int …… 题解列表 2024年04月17日 0 点赞 0 评论 189 浏览 评分:9.9
python--study||O.o 摘要:参考代码:#每个草丛只能是1个'#'或2个'#' dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def f(x, y): …… 题解列表 2024年04月17日 0 点赞 0 评论 217 浏览 评分:0.0