判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void) { int a; scanf("…… 题解列表 2025年11月01日 0 点赞 0 评论 111 浏览 评分:0.0
c语言大一新生 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the consol…… 题解列表 2025年11月01日 0 点赞 0 评论 299 浏览 评分:0.0
用if和break来做,多种情况都考虑到了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,max,min,i,j; scanf("%d%d",&m…… 题解列表 2025年11月02日 0 点赞 0 评论 220 浏览 评分:0.0
c++加注释版 摘要:#include <iostream>using namespace std;int main() { int k; cin >> k; if (k == 1 || k == …… 题解列表 2025年11月02日 0 点赞 0 评论 76 浏览 评分:0.0
编写题解 3030: 全排列 摘要:解题思路:创建三个数组,一个储存输入的字符串,一个用于输出结果的字符串,一个用于遍历时记录当前字符有没有被使用过,通过递归来遍历生成全排列注意事项:在遍历完一个位置之后要重新标记为未使用,方便后面继续…… 题解列表 2025年11月02日 0 点赞 0 评论 83 浏览 评分:0.0
使用字典 win_rules 存储获胜规则且可扩展 摘要:def judge_game(player1_choice, player2_choice): """ 判断石头剪子布…… 题解列表 2025年11月02日 0 点赞 0 评论 62 浏览 评分:0.0
2797:最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n);//5 int i,scor…… 题解列表 2025年11月03日 0 点赞 0 评论 87 浏览 评分:0.0
2822两种思路c++ 摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =…… 题解列表 2025年11月03日 0 点赞 0 评论 42 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void str_stastic(char *str);int main…… 题解列表 2025年11月03日 0 点赞 0 评论 59 浏览 评分:0.0
[编程入门]带参数宏定义练习 摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用…… 题解列表 2025年11月03日 0 点赞 0 评论 81 浏览 评分:0.0