码迷,mamicode.com
首页 >  
搜索关键字:breakfast    ( 29个结果
【树上莫队】【带修莫队】【权值分块】bzoj4129 Haruna’s Breakfast
#include#include#include#includeusing namespace std;#define N 50001int v[N=n) return; T[x]+=op; if(!T[x]) --sumv[nu2[x]]; else if(o...
分类:其他好文   时间:2015-06-18 23:33:29    阅读次数:97
BZOJ 4129 Haruna’s Breakfast 带修改树上莫队+分块
题目大意:给定一棵树,每个点有一个非负点权,支持下列操作 1.修改某个点的点权 2.查询某条链上的mex 考虑链上不带修改的版本,我们可以用莫队来搞(链接戳这里) 现在到了树上带修改,果断糖果公园 本来抱着逗比的心态写了一发结果1.4s过了 跟糖果公园的80s完全不成正比啊0.0#include #include #include #...
分类:其他好文   时间:2015-06-12 17:33:29    阅读次数:153
Python Tricks 若干
PythonTricks若干赵斌—APRIL29,2015在python代码中可以看到一些常见的trick,在这里做一个简单的小结。json字符串格式化在开发web应用的时候经常会用到json字符串,但是一段比较长的json字符串是可读性较差的,不容易看出来里面结构的。这时候就可以用python来把json字符串漂..
分类:编程语言   时间:2015-05-08 20:25:30    阅读次数:167
Topcoder SRM656div1 250 ( 期望DP )
Problem StatementCharlie has N pancakes. He wants to serve some of them for breakfast. We will number the pancakes 0 through N-1. For each i, pancake ...
分类:其他好文   时间:2015-04-18 01:00:11    阅读次数:265
GCJ 2015Q(Infinite House of Pancakes-贪心与枚举)
Problem At the Infinite House of Pancakes, there are only finitely many pancakes, but there are infinitely many diners who would be willing to eat them! When the restaurant opens for breakfast, among...
分类:其他好文   时间:2015-04-12 16:19:03    阅读次数:120
Infinite House of Pancakes(贪心)
Problem At the Infinite House of Pancakes, there are only finitely many pancakes, but there are infinitely many diners who would be willing to eat them! When the restaurant opens for breakfast, among...
分类:其他好文   时间:2015-04-11 20:53:37    阅读次数:134
牛排与酒英语词汇
breakfast 早餐lunch 午餐brunch 早午餐supper 晚餐late snack 宵夜dinner 正餐ham and egg 火腿肠buttered toast 奶油土司French toast 法国土司muffin松饼cheese cake 酪饼white bread 白面包b...
分类:其他好文   时间:2014-07-31 19:39:47    阅读次数:219
湘大OJ1179Bird's Breakfast(dp)
题目描述 又是美好的一天,小鸟Jelly早早地起床,将要出门觅食。谁说没有天上掉馅饼的事,当Jelly出门时,惊奇地发现自己面前,N条悲催的小虫整齐地排成一排等待着Jelly享用。Jelly将这些虫标上序号1..N,当然,Jelly的警惕性还是很高的,他认为选择任意两条相邻的小虫i和i+1是危险的,但一条小虫都不吃显然是不现实的(p.s.因为会挨一天的饿…),吃多吃少无所谓。所以请你告诉Jell...
分类:其他好文   时间:2014-05-24 21:57:44    阅读次数:357
鼠标放上去出现冒泡显示,鼠标挪开隐藏气泡
breakfast ...
分类:其他好文   时间:2014-05-16 04:36:08    阅读次数:322
29条   上一页 1 2 3
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!