[编程入门]报数问题 纯c解法 无技巧 摘要:解题思路:只有纯0才有资格呢【狗头】注意事项:)报数足够多(但是时间可能超限)参考代码:#include<stdio.h>int a[101];int main(){ int m,h=0,q=0…… 题解列表 2024年12月03日 0 点赞 0 评论 351 浏览 评分:10.0
1063: 二级C语言-统计字符 摘要:解题思路:注意事项:注意分别输出的顺序,不能写乱。参考代码:#include <stdio.h>int main(void){ int a = 0, b = 0, c = 0, d = 0; …… 题解列表 2024年12月02日 0 点赞 0 评论 831 浏览 评分:0.0
1770: [编程入门]链表之报数问题 算了链表太难了,直接队列解!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 创建一个整数队列 queu…… 题解列表 2024年12月02日 0 点赞 0 评论 275 浏览 评分:0.0
1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gys(int a,int b){ if (a == b) { return a; } if (a<b) { return …… 题解列表 2024年12月02日 1 点赞 0 评论 494 浏览 评分:10.0
计算边缘之和本比做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,c,d,e,f,n,m; c=0;d=0;e=0;f=0; int a[101…… 题解列表 2024年12月02日 3 点赞 0 评论 273 浏览 评分:10.0
汽水瓶-递归思想(C++代码) 摘要:解题思路:由简单到复杂!当我们只有1瓶空汽水瓶时,换不了,自己留下1个空瓶;但我们有2个空瓶时,可以让老板借我们一瓶汽水,喝完再用3个空瓶换一瓶还给老板,最后我们留下0个空瓶;有3个时,换1,留1;有…… 题解列表 2024年12月02日 4 点赞 0 评论 308 浏览 评分:10.0
喜欢if的看这里 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define y(a,b,c) ({ \ double max=(a); \ if((b)>max)max=(b); \ …… 题解列表 2024年12月02日 0 点赞 0 评论 570 浏览 评分:6.0
哥德巴赫曾猜测 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n) { if (n == 1) { return 0; } for (int…… 题解列表 2024年12月02日 1 点赞 1 评论 401 浏览 评分:9.9
字符逆序使用reverse求解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm> using namespace std;int main(){ string s; getli…… 题解列表 2024年12月02日 0 点赞 0 评论 283 浏览 评分:0.0
不用递归也能解出这题 摘要://完成一个递归程序,倒置字符数组。并打印实现过程 //递归逻辑为: //当字符长度等于1时,直接返回 //否则,调换首尾两个字符,在递归地倒置字符数组的剩下部分 //输出每一次倒置后的结果,…… 题解列表 2024年12月02日 0 点赞 1 评论 463 浏览 评分:9.9