1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define MAX(a, b, c)\{\ printf("%.3lf"…… 题解列表 2025年11月04日 0 点赞 0 评论 15 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[30…… 题解列表 2025年11月04日 0 点赞 0 评论 13 浏览 评分:0.0
整数序列的元素最大跨度值 ———— STL解法 摘要:解题思路:使用具有C++特色的vector<>容器来代替数组使用,同时使用迭代器,调用STL…… 题解列表 2025年11月04日 0 点赞 0 评论 12 浏览 评分:0.0
慢慢看,慢慢理解,你也能做到, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=0,n=0;int answer=0;int main(){ …… 题解列表 2025年11月04日 0 点赞 0 评论 10 浏览 评分:0.0
一个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,n,temp; d…… 题解列表 2025年11月04日 0 点赞 0 评论 9 浏览 评分:0.0
T1010-利润计算--步骤清晰 摘要:解题思路:注意事项:参考代码:l=int(input())bonus=0levels=[&n…… 题解列表 2025年11月04日 0 点赞 0 评论 10 浏览 评分:0.0
[编程入门]三个字符串的排序 摘要:解题思路:注意事项:如果使用strcmp感觉只能用冒泡排序了,初始化字符串时可以用一维的字符串指针数组储存,用二维字符串数组也行。参考代码:#include <stdio.h>#inclu…… 题解列表 2025年11月04日 1 点赞 0 评论 4 浏览 评分:10.0
两个for循环嵌套+flag标志 摘要:解题思路:注意事项:i=2时,不满足内层循环条件,所以2可以被输出,不用再单独考虑2的情况了。参考代码:#include<stdio.h>int main(){ …… 题解列表 2025年11月04日 0 点赞 0 评论 4 浏览 评分:0.0