题解列表

筛选

信息学奥赛一本通T1290-采药

摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e……

超绝相差解法

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n; cin>>m>>n; int s1=0; int s……

超绝相差解法

摘要:解题思路:1 3 5-1 3 =5注意事项:参考代码:#includeusing namespace std;int main(){ int m,n; cin>>m>>n; int sum1=0; i……

会find就很好做了

摘要: ```cpp #include using namespace std; #define endl '\n' const int N=105; string s; int……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……

2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……

1738-排序(由小到大*多数据排序)

摘要:解题思路:用数组储存数据,两个for循环遍历数据,比较大小交换位置注意事项:会用到new获取数组大小参考代码:#include <iostream>using namespace std;void s……