摘要:
这个题有几个点需要注意。。第一。。字符串以'\0'结尾。。不要开小数组。。 第二对齐输出格式。。仔细对照会发现是%3d while循环里面t忘记++ down list的word的含义理解错误。。标号仍然用第一次标的 down list需要从小到大输出。。我冒泡了一下。。 存储标号的num数组每次都 阅读全文
摘要:
#include #include #include #include using namespace std; typedef long long ll; const int maxn=1e5+7; int belong[maxn],l[maxn],r[maxn],block,num,n,q; ll a[maxn],Max[maxn]; void build(){ block=... 阅读全文