#include<bits/stdc++.h>using namespace std;int x,y;vector<int>v1,v2;long long solve(vector<int>v){ long long sum=0; set<int>s; int len=v.size(); for(i ...
分类:
其他好文 时间:
2018-09-12 01:14:12
阅读次数:
176
题目链接 题意 : 给出一个由数字组成的字符串、然后要你找出其所有本质不同的回文子串、然后将这些回文子串转化为整数后相加、问你最后的结果是多少、答案模 1e9+7 分析 : 应该可以算是回文树挺裸的题目吧 可惜网络赛的时候不会啊、看着马拉车想半天、卒... 对于每一个节点、记录其转化为整数之后的值 ...
分类:
其他好文 时间:
2018-09-11 19:41:22
阅读次数:
182
C*M....死于update的一个long long写成int了 心累 不想写过程了 ******** 树状数组,一个平的一个斜着的,怎么斜都行 题库链接:https://nanti.jisuanke.com/t/31460 ...
分类:
其他好文 时间:
2018-09-11 01:02:04
阅读次数:
149
[TOC] 20180909徐州网络赛题解 A. Hard to prepare MEANING n个点的环,每个点在[0,$2^{k 1}$] 之间选一个值。要求相邻两点的权值的二进制至少有一位相同。问方案数 SOLUTION 断环为链,类似染色问题递归推导,考虑到爆栈,可能要把递归改成递推 CO ...
分类:
其他好文 时间:
2018-09-10 21:23:23
阅读次数:
275
题目链接: https://nanti.jisuanke.com/t/31458 题解: 建立两个树状数组,第一个是,a[1]*n+a[2]*(n-1)....+a[n]*1;第二个是正常的a[1],a[2],a[3]...a[n] 262144K Morgana is learning compu ...
分类:
其他好文 时间:
2018-09-10 19:46:50
阅读次数:
395
题目链接: https://nanti.jisuanke.com/t/31458 题解: 建立两个树状数组,第一个是,a[1]*n+a[2]*(n-1)....+a[n]*1;第二个是正常的a[1],a[2],a[3]...a[n] 262144K Morgana is learning compu ...
分类:
其他好文 时间:
2018-09-10 19:43:15
阅读次数:
187
Ryuji is not a good student, and he doesn't want to study. But there are n books he should learn, each book has its knowledge a[i]a[i]. Unfortunately, ...
分类:
编程语言 时间:
2018-09-10 19:08:45
阅读次数:
216
[TOC] A. Hard to prepare B. BE, GE or NE C. Cacti Lottery D. Easy Math E. End Fantasy VIX F. Features Track G. Trace H. Ryuji doesn't want to study I. ...
分类:
其他好文 时间:
2018-09-10 11:15:37
阅读次数:
305
There's a beach in the first quadrant. And from time to time, there are sea waves. A wave ( xx , yy) means the wave is a rectangle whose vertexes are ...
分类:
其他好文 时间:
2018-09-09 20:34:42
阅读次数:
235
Hard to prepare 28.63% 1000ms 262144K After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show ...
分类:
其他好文 时间:
2018-09-09 20:01:21
阅读次数:
249