1093: 字符逆序 摘要:解题思路:主要用于读取用户输入的字符串,并将其反转后输出。参考代码:#include <stdio.h> int main() { char a[100]; char b[…… 题解列表 2024年05月05日 0 点赞 0 评论 330 浏览 评分:0.0
C++ STL multiset从小到大保存最大的k个数 摘要:解题思路:使用STL multiset从小到大保存最大的k个数,那么第一个数就是第k个最大数注意事项:数字可以重复,所以不能用set参考代码:#include<iostream> #include<…… 题解列表 2024年05月05日 0 点赞 0 评论 308 浏览 评分:0.0
2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; if(a/10>=1…… 题解列表 2024年05月05日 0 点赞 0 评论 219 浏览 评分:0.0
题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n…… 题解列表 2024年05月05日 0 点赞 0 评论 301 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in…… 题解列表 2024年05月05日 0 点赞 0 评论 464 浏览 评分:0.0
使用STL unordered_map实现 摘要:解题思路:使用unordered_map统计每种颜色气球出现的次数,输出出现次数最多的气球颜色。注意事项:参考代码:#include<iostream> #include<string> #inc…… 题解列表 2024年05月05日 0 点赞 0 评论 198 浏览 评分:0.0
3068: 股票买卖DP 摘要:解题思路:两次买卖, 求最大区间差注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namesp…… 题解列表 2024年05月05日 0 点赞 0 评论 198 浏览 评分:0.0
题目 1034: 秒杀!!! 摘要:解题思路:直接看成是字符串 ,秒杀注意事项:参考代码:#includeusing namespace std;int main(){ string a; cin >> a; f…… 题解列表 2024年05月05日 0 点赞 0 评论 253 浏览 评分:0.0
3069: 鸣人的影分身 摘要:解题思路:分身数为1, 查克能力0或1只有一种分配方式; f[i][j]表示i查克能力j个分身的分配数注意事项:参考代码:#include<iostream> #include<cstring> …… 题解列表 2024年05月05日 0 点赞 0 评论 238 浏览 评分:0.0
信息学奥赛一本通T1440-数的划分 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std; co…… 题解列表 2024年05月05日 0 点赞 0 评论 264 浏览 评分:0.0