题解列表

筛选

矩阵交换行

摘要:解题思路:注意事项:参考代码:for i in range(5):    ls = list(map(int, input().split()))    a.append(ls)b = list(ma……

2946: 数制转换

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];int a[1……

利用C++完成数组插入处理

摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int ……

参考01背包

摘要:解题思路:容量换成甜度注意事项:只有一个值(甜度),只需要算对应格参考代码:#include<stdio.h>int main(){    int n,dp[100]={0},a,v;    scan……

题解 2782: 整数大小比较

摘要:解题思路:无注意事项:要注意:c++中的“=”是“==”参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b;……

短除法解题

摘要:解题思路:两正整数m,n最大公因数A最小公倍数B如上80=16*5,75=15*5其中 5 为80,75的最大公因数两者的最小公倍数为 16*15*5 或者说 (80/5)*(75/5)*5从上面的例……