map存储,指针遍历,简洁优雅 摘要:解题思路:map存储字符,循环遍历注意事项: 记得getchar()清空缓冲区参考代码:#include <bits/stdc++.h> #define IOS ios::sync_with_std…… 题解列表 2024年06月07日 0 点赞 0 评论 720 浏览 评分:9.9
编写题解 3018: 末两位数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a;for(int i=1;…… 题解列表 2024年06月06日 0 点赞 0 评论 197 浏览 评分:0.0
1105数列(函数加while循环) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;//鬼知道这道题是怎么想的,我用pow求k的次方,结果总有一个例题过不去,我真的服了int power(int k…… 题解列表 2024年06月05日 0 点赞 0 评论 291 浏览 评分:9.9
编写题解 3015: 幂的末尾 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a>>b;for(int i…… 题解列表 2024年06月05日 0 点赞 0 评论 148 浏览 评分:0.0
编写题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,n,m;cin>>a>>b>>n;m=a*1.…… 题解列表 2024年06月05日 0 点赞 0 评论 416 浏览 评分:0.0
1103开心的金明(dp动态规划) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int S = 28;int M;//拥有的钱int N;//需要买的物品数int…… 题解列表 2024年06月04日 0 点赞 0 评论 236 浏览 评分:0.0
1102明明的随机数(冒泡排序解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; int a[105]; for (i…… 题解列表 2024年06月04日 0 点赞 0 评论 215 浏览 评分:0.0
编写题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a,b; cin>>n; float x,y;…… 题解列表 2024年06月04日 0 点赞 0 评论 1344 浏览 评分:0.0
算法思维弱,尽力了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void sc (int a,int b, int c){ cout << a…… 题解列表 2024年06月03日 0 点赞 0 评论 252 浏览 评分:0.0
编写题解 2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int x,n;cin>>x>>n;double s=x*1.…… 题解列表 2024年06月02日 0 点赞 0 评论 203 浏览 评分:0.0