题解列表
VIP-01背包(简洁)
摘要:#include<stdio.h>#include<string.h>int a[1000][10000];int main(){ int n, m; scanf("%d%d", &n, &m); i……
还差50分的话,就要while多组输入。29行代码搞定
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; while(cin>>n>>m……
18行代码就可搞定了
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int i,……
题解 1026: [编程入门]数字逆序输出(C)
摘要:解题思路:就是个输入输出的考察,没啥好说的,上代码注意不要像我一样,自以为是给数据从大到小排序,输出就好了参考代码:#include<stdio.h>
int main(void){
int……
可以使用递归的思想输出正反序列
摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"void fun(int p,int a){ if(p==0) return ; if(……
#C语言1474——蓝桥杯基础练习VIP-阶乘计算(大数阶乘)
摘要:参考代码:#include<stdio.h>
#include<string.h>
int main()
{
long long i,j,n,temp,d=1,carry;//temp……
使用实现区间查询最小值,和的线段树
摘要:解题思路:看注释注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 1000010#define INF 1000010……