题解列表

筛选

前缀和-青蛙过河

摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e5+5; ll n,x; ll sum[N……

数学题-GCD(c++)

摘要:数学题,不是很懂,先放着 ```cpp #include using namespace std; typedef long long ll; int main() { ll a……

小南解题---矩阵加法

摘要:'''zgn94615:01 2022/5/13'''#输入a,b=map(int,input().strip().split())A=[list(ma……

动态规划-选数异或

摘要:动态规划求两数异或等于x的区间左端最大值 ```cpp #include #include using namespace std; typedef long long ll; con……

利用<math.h>,pow()函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int i;    int l,m,n;    for(i=100;i<1……

纸张尺寸C++

摘要:```cpp #include using namespace std; int main() { string s; cin>>s; int sz=s[1]-'0'……

用了C++中的vector数组

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> arr;bool method1(in……

lf-Hello,world! 普通解法

摘要:解题思路:注意事项:参考代码:    #include    int main(){      int a;      char s;      while(scanf("%d",&a)!=EOF){……