过
#include<cstdio> #include<iostream> using namespace std; int a[1000000],n,m,s; int mai…
#include<cstdio> #include<iostream> using namespace std; int a[1000000],n,m,s; int mai…
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int n…
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int a…
#include<cstdio> #include<iostream> using namespace std; int a[45][45]={0}; int main(v…
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int p[16],x=0; bool first…
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int t[10001]={0},s[10001]…
0
回复
首先必须歌颂一下答案,个位数前居然还有要留一个空格(也就是域宽为2);我提交上去三次才发现这玩意...以下为给菜鸟看的域宽是什么?就是在数字总共占的格数。举个例子域宽:不设 213域宽:2 213也就是说,在限定了域宽为2之…
本道题的思路很简单,读入数组后,按照要求把给定的 L -> R 区间中的值全部取出来,然后做一个排序。#include <iostream>#include <algorithm> using n…
本题的做法就是:暴力+剪枝说实话一拿到题目最开始的想法是中序和中序对称、前序和后序对称,然而最后上手去写以后发现这编程复杂度高到一定境界,还是暴力拯救世界的好!首先,怎么判定一棵子树是不是对称二叉树?bool check(ll x,ll…