编写题解 3030: 全排列 摘要:解题思路:创建三个数组,一个储存输入的字符串,一个用于输出结果的字符串,一个用于遍历时记录当前字符有没有被使用过,通过递归来遍历生成全排列注意事项:在遍历完一个位置之后要重新标记为未使用,方便后面继续…… 题解列表 2025年11月02日 0 点赞 1 评论 326 浏览 评分:0.0
使用字典 win_rules 存储获胜规则且可扩展 摘要:def judge_game(player1_choice, player2_choice): """ 判断石头剪子布…… 题解列表 2025年11月02日 0 点赞 0 评论 182 浏览 评分:0.0
2797:最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n);//5 int i,scor…… 题解列表 2025年11月03日 0 点赞 0 评论 210 浏览 评分:0.0
2822两种思路c++ 摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =…… 题解列表 2025年11月03日 0 点赞 0 评论 96 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void str_stastic(char *str);int main…… 题解列表 2025年11月03日 0 点赞 0 评论 141 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:GET_S(a,b,c)宏展开后,S是宏内部的局部变量(被{}包裹),作用域仅限于该宏的代码块。当调用GET_AREA(…… 题解列表 2025年11月03日 0 点赞 0 评论 355 浏览 评分:0.0
电子爱好者的C语言算法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i,n,max=0,num[1000],…… 题解列表 2025年11月03日 0 点赞 0 评论 148 浏览 评分:0.0
1723:多组测试数据,求最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,num,max; while(scanf("%d",&num…… 题解列表 2025年11月03日 0 点赞 0 评论 249 浏览 评分:0.0
利用数学函数库和两个for循环解题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,sum=0…… 题解列表 2025年11月03日 0 点赞 1 评论 225 浏览 评分:0.0
3个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub…… 题解列表 2025年11月03日 0 点赞 0 评论 326 浏览 评分:0.0