题解列表

筛选

题解,标记

摘要:```c #include int main() { int n; scanf("%d", &n); int arr[n]; for (int i =……

T1267-01背包问题

摘要:解题思路:滚动数组—— 一维dp数组遍历:for(      )  物品    for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + ……

编写题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){  int n,p=0;  scanf("%d",&n);  p=pow(2,n)……

2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int sum = 0, j, a, b, c, i;    char d;    scanf("%d……

小白,看看就行,不动脑袋

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){    int k, n;    dou……

2828: 与7无关的数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int t=0,i,n,sum=0;    scanf("%d",&n);……