码迷,mamicode.com
首页 >  
搜索关键字:buy tickets    ( 1402个结果
Poj2828Buy Tickets线段树
倒着搞就可以了,先进会被后面覆盖。#include #include #include #include #include #include #include #include #include #include #include #include #includeusing namespace.....
分类:其他好文   时间:2014-08-22 00:04:05    阅读次数:174
Google Code Jam 2012 Practice - Store Credit
Problem You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy tw...
分类:其他好文   时间:2014-08-18 12:42:04    阅读次数:222
1151 - Buy or Build(二进制枚举子集 + 并查集)
这题LRJ书上翻译的有问题,书上说两点之间的cost是两点的欧几里得距离,而题目要求两点的距离是两点欧几里得距离的平方。 其余就没什么好说的了,裸的并查集,需要注意的就是二进制枚举子集的问题。 二进制枚举子集: for(int i = 0 ; i < (1 << s) ; i++){ /*s是集合元素的个数*/ for(int j = 0 ; j < s ; j+...
分类:其他好文   时间:2014-08-17 20:01:52    阅读次数:213
zoj 2913 Bus Pass (BFS)
Bus PassTime Limit:5 Seconds Memory Limit:32768 KBYou travel a lot by bus and the costs of all the seperate tickets are starting to add up.Therefore y...
分类:其他好文   时间:2014-08-17 08:07:21    阅读次数:296
form 提交数组的一些trick
在给服务器传值时form利用 $.post( "/member/member/book/" + event_id, { tickets: tickets, csrf_ppw_token : csrf_ppw_token, event_id : ...
分类:其他好文   时间:2014-08-16 12:27:30    阅读次数:191
uva 327 - Evaluating Simple C Expressions
Evaluating Simple C ExpressionsThe task in this problem is to evaluate a sequence of simple C expressions, buy you need not know C to solve the proble...
分类:其他好文   时间:2014-08-15 12:44:48    阅读次数:223
Best Time to Buy and Sell Stock III
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:其他好文   时间:2014-08-14 23:19:46    阅读次数:240
Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:其他好文   时间:2014-08-14 23:05:56    阅读次数:165
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction ...
分类:其他好文   时间:2014-08-14 20:30:19    阅读次数:197
poj 2828 Buy Tickets
Buy Tickets Time Limit: 4000MS   Memory Limit: 65536K Total Submissions: 13277   Accepted: 6595 Description Railway tickets were difficult to buy around the Lunar New Y...
分类:其他好文   时间:2014-08-13 22:35:37    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!