题解列表

筛选

2784: 收集瓶盖赢大奖

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; if(a/10>=1……

题解 3020: 最大数位置

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){    int n……

3020: 最大数位置

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in……

使用STL unordered_map实现

摘要:解题思路:使用unordered_map统计每种颜色气球出现的次数,输出出现次数最多的气球颜色。注意事项:参考代码:#include<iostream> #include<string> #inc……

3068: 股票买卖DP

摘要:解题思路:两次买卖, 求最大区间差注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm>  using namesp……

题目 1034: 秒杀!!!

摘要:解题思路:直接看成是字符串 ,秒杀注意事项:参考代码:#includeusing namespace std;int main(){     string a;     cin >> a;     f……

3069: 鸣人的影分身

摘要:解题思路:分身数为1, 查克能力0或1只有一种分配方式; f[i][j]表示i查克能力j个分身的分配数注意事项:参考代码:#include<iostream> #include<cstring> ……

多个数字相加

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

正常简单思路解答救援问题

摘要:解题思路:单趟时间相加对总时间向上取整注意事项:先相加再向上取整参考代码:#include<iostream>#include<math.h>#include<cmath>using namespac……