1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; …… 题解列表 2023年12月05日 0 点赞 0 评论 307 浏览 评分:6.0
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; …… 题解列表 2023年12月05日 0 点赞 0 评论 421 浏览 评分:9.9
1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; c…… 题解列表 2023年12月05日 0 点赞 0 评论 453 浏览 评分:9.9
题解 2907: 不与最大数相同的数字之和 摘要: #include using namespace std; int a[110]; int main() { int n,t=-1e9; …… 题解列表 2023年12月05日 0 点赞 0 评论 162 浏览 评分:2.0
Yu:2816统计满足条件的4位数个数 摘要:#### 解题思路: 在会如何得到每一位数的情况下再思考此题。 如何得到每一位数的模板如下: ```c++ while(n){ // 当n变为0时循环结束 cout > …… 题解列表 2023年12月05日 0 点赞 0 评论 159 浏览 评分:0.0
菲波那契数列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f[100]={0,1};int main(){ int n; cin>>n…… 题解列表 2023年12月05日 0 点赞 0 评论 257 浏览 评分:7.0
2775: 等差数列末项计算 摘要:解题思路:注意事项:b比a大所以先写b,最后加a。参考代码:#include <iostream>using namespace std;int main(){ int a,b,n; ci…… 题解列表 2023年12月05日 0 点赞 0 评论 176 浏览 评分:9.9
2773: 计算线段长度 摘要:解题思路:注意事项:要按题目给的顺序写参考代码:#include<bits/stdc++.h>using namespace std;yaybint main(){ double xa, xb,…… 题解列表 2023年12月05日 0 点赞 0 评论 241 浏览 评分:9.9
Yu:2913整数去重 摘要:### 解析 **注意:**题目数据范围10~100,这样我们可以用a[i]的值代表i的个数。如果为一,表示只出现过一次,这种状态下输出。0表示未出现过,1以上表示出现多次。 把数组定义为全局变量…… 题解列表 2023年12月05日 0 点赞 0 评论 201 浏览 评分:9.9
编写题解 2809: 菲波那契数列 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int k,b=1,c=1,s=0; cin>>k; for(int i…… 题解列表 2023年12月05日 0 点赞 0 评论 158 浏览 评分:0.0