数组来做,优化了算法的 摘要:解题思路:注意事项:参考代码:#include#includeint main(){ int i,j,N,a[1000],b[1000],x,sum; scanf("%d",&N); for(i=6;…… 题解列表 2022年10月31日 0 点赞 0 评论 316 浏览 评分:9.9
汪汪与打针(C++简单逻辑清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int a,int b) //返回次数 { …… 题解列表 2022年10月31日 0 点赞 0 评论 322 浏览 评分:9.9
迭代法解决 摘要:# MarkDown编辑器基本使用说明 代码如下: ``` #include using namespace std; int main() { int N = 0; c…… 题解列表 2022年10月31日 0 点赞 0 评论 373 浏览 评分:9.9
1684: 数据结构-n阶Hanoi塔问题 摘要:解题思路:汉诺塔问题,就将其细分化注意事项:参考代码:#include using namespace std; int fun(int n, char x, char y, char z, in…… 题解列表 2022年10月31日 0 点赞 0 评论 402 浏览 评分:9.9
直接蛇形输入 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,c,a[100][100],N,l,d; scanf("%d",&N); for(c=1,n…… 题解列表 2022年10月31日 0 点赞 0 评论 252 浏览 评分:9.9
收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(a>=…… 题解列表 2022年11月01日 0 点赞 1 评论 620 浏览 评分:9.9
判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:#include<iostream>using namespace std;int main(){ int n; cin>>n; if(n%3==0&…… 题解列表 2022年11月01日 0 点赞 0 评论 862 浏览 评分:9.9
判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; if(n%3==0&&…… 题解列表 2022年11月01日 0 点赞 2 评论 1105 浏览 评分:9.9
输入输出练习之精度控制2 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<iomanip> int main() { doubl…… 题解列表 2022年11月01日 0 点赞 0 评论 588 浏览 评分:9.9
晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int weekday; cin>>weekday; s…… 题解列表 2022年11月01日 0 点赞 0 评论 675 浏览 评分:9.9