题目链接: "HDU4630" 把所有询问离线处理。 从右往左扫一遍,设$p_i$表示目前扫过的数中含有因子$i$的最左边的数的下标。 对当前的数$a_i$,扫描所有$a_i$的因子$x$,那么将所有$x|a_j(j\ge i)$的$j$,开一个数组$c$,将$c_j$与$x$取$max$,那么若当 ...
分类:
其他好文 时间:
2019-02-14 15:20:14
阅读次数:
150
$$$$$$$$$$$$$$$$cc.p() <=> x,y $$$$$$$$$$$$$$$$场景间的跳转$$$$$$$$$$$$$$$$cc.director.loadScene('场景名称') -- game.firecc.director.preloadScene('场景名称') -- gam ...
Turning:Are you pay attention?Good.If you are not listening carefully you will miss things,important things.I will not repeat myself and you will not ...
分类:
其他好文 时间:
2019-02-13 22:28:15
阅读次数:
192
就写到这里,不玩这个了,game over。 2.0版本添加了多报表页嵌套功能,每份报表可设置多页,每页可设置不同的纸张大小、数据表、页面规则等,并可对报表页次序即时调整,同时,优化了显示,报表显示更流畅。2.3增加了数据库生成一维码、二维码以及直接写入维码;数据库字段之间进行混合四则运算。2.5统 ...
Game on Tree 这种题好像在wannfly训练营讲过, 我怎么又不会写啦, 我好菜啊啊啊。 我们按每个点算贡献, 一个点有贡献就说明它是被选中的点, 那么它被选中的概率就为1 / depth ...
分类:
其他好文 时间:
2019-02-11 12:30:16
阅读次数:
209
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2019-02-11 12:13:55
阅读次数:
167
题目链接 紫书例题。 首先附上我第一次bfs+剪枝TLE的版本: 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 const int N=24+2,inf=0x3f3f3f3f; 6 const ...
分类:
其他好文 时间:
2019-02-09 13:19:10
阅读次数:
252
background: Philip likes to play the QQ game of Snooker when he wants a relax, though he was just a little vegetable-bird. Maybe you hadn't played tha ...
分类:
其他好文 时间:
2019-02-08 23:11:17
阅读次数:
184
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-02-08 18:35:11
阅读次数:
152
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-02-07 17:51:36
阅读次数:
159