电子爱好者的C语言算法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i,n,max=0,num[1000],…… 题解列表 2025年11月03日 0 点赞 0 评论 98 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:GET_S(a,b,c)宏展开后,S是宏内部的局部变量(被{}包裹),作用域仅限于该宏的代码块。当调用GET_AREA(…… 题解列表 2025年11月03日 0 点赞 0 评论 215 浏览 评分:0.0
[编程入门]带参数宏定义练习 摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用…… 题解列表 2025年11月03日 0 点赞 0 评论 117 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void str_stastic(char *str);int main…… 题解列表 2025年11月03日 0 点赞 0 评论 85 浏览 评分:0.0
2822两种思路c++ 摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =…… 题解列表 2025年11月03日 0 点赞 0 评论 51 浏览 评分:0.0
2797:最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n);//5 int i,scor…… 题解列表 2025年11月03日 0 点赞 0 评论 144 浏览 评分:0.0
使用字典 win_rules 存储获胜规则且可扩展 摘要:def judge_game(player1_choice, player2_choice): """ 判断石头剪子布…… 题解列表 2025年11月02日 0 点赞 0 评论 87 浏览 评分:0.0
编写题解 3030: 全排列 摘要:解题思路:创建三个数组,一个储存输入的字符串,一个用于输出结果的字符串,一个用于遍历时记录当前字符有没有被使用过,通过递归来遍历生成全排列注意事项:在遍历完一个位置之后要重新标记为未使用,方便后面继续…… 题解列表 2025年11月02日 0 点赞 0 评论 99 浏览 评分:0.0
c++加注释版 摘要:#include <iostream>using namespace std;int main() { int k; cin >> k; if (k == 1 || k == …… 题解列表 2025年11月02日 0 点赞 0 评论 91 浏览 评分:0.0
用if和break来做,多种情况都考虑到了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,max,min,i,j; scanf("%d%d",&m…… 题解列表 2025年11月02日 1 点赞 1 评论 304 浏览 评分:10.0