1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:if的格式(有两个&)参考代码:#include <iostream> using namespace std;int main(){int a,b,c;cin>>a>>b>>c;…… 题解列表 2022年10月07日 0 点赞 0 评论 406 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b && …… 题解列表 2022年10月07日 0 点赞 0 评论 355 浏览 评分:9.9
【C语言】临时记忆:用数组实现队列功能的解法 - DotcppXF 摘要:【解题思路】 ① 用数组 a[] 标记目前所有书的状态,便于查找,提高效率; ② 用数组 b[] 储存小A记住的书,循环处理完他需要依次记住的书。【1】所有书的状态标记 …… 题解列表 2022年10月07日 0 点赞 0 评论 480 浏览 评分:9.9
寻找三位数(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.HashSet; import java.util.Set; public class Main{ public sta…… 题解列表 2022年10月07日 0 点赞 0 评论 420 浏览 评分:9.9
1015: [编程入门]求和训练(do while) 摘要:解题思路:3个循环,直接加注意事项:1.注意 while( ) 和 do while( ) 的区别2.注意 i-- 和 --i 的区别参考代码:#include <iostream> #includ…… 题解列表 2022年10月08日 0 点赞 0 评论 399 浏览 评分:9.9
简化运算规律数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); double a[100],sum=0; a[0]=2/1; …… 题解列表 2022年10月08日 0 点赞 0 评论 324 浏览 评分:9.9
萌新也能轻松AC之计算素数和 摘要:```python m, n = map(int,input().split()) sum = 0 if m < n: 判断程序触发条件 for i in range(m,n+1)…… 题解列表 2022年10月08日 0 点赞 0 评论 515 浏览 评分:9.9
用三目运算符实现三个数从小到大排序 摘要:原题链接:[[编程入门]三个数字的排序](https://www.dotcpp.com/oj/problem1043.html "[编程入门]三个数字的排序") c中只有一个三目运算符 公…… 题解列表 2022年10月08日 0 点赞 0 评论 416 浏览 评分:9.9
递归猴子吃桃 摘要:解题思路:将题目倒过来思考:第一天1个桃子 第二天2*(1+1)个桃子 第三天2*【2*(1+1)+1】个桃子.........由此我们可以得到递推公式fun(n)=2*[ fun(n…… 题解列表 2022年10月09日 0 点赞 0 评论 562 浏览 评分:9.9
暴力求解完数 摘要:解题思路:先判断是不是完数,输出元素注意事项:参考代码:方法一:#includeint main(){ int a; int n; int i,j; scanf("%d", &…… 题解列表 2022年10月09日 0 点赞 0 评论 314 浏览 评分:9.9