题解列表

筛选

数字后移(基础思路)

摘要:解题思路:两个数组,a[]保存原始输入值,b[]的头存a[]的尾,最后将a[]的后半部分给b[];注意事项:参考代码:#include<iostream>using namespace std;int……

调库就行了

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010#define maxm 105int n,m;……

简单的动态规划算法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 15//对于100%的数据,n<=13int n,simi……

求矩阵最大元素值、下标

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,l; int big,tmp; int a[100][100]; scanf("%d",……

打地鼠-题解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//int f(int a,int b);main(){int n,n1; while(~scanf("……

编写题解 2879: 错误探测 C

摘要:解题思路:输入-每行计算1的值-每列计算1的值-输出注意事项:分开写比较清楚参考代码:#include<stdio.h>int main(){    int n;    int a=0,b=0;   ……

关键处只有一行代码

摘要:解题思路:根据老板可以借水,可以变相理解为使用2个空瓶和老板换一瓶水,代码改写为参考代码:while 1:    t=int(input())    if t == 0:        break  ……