码迷,mamicode.com
首页 >  
搜索关键字:each    ( 14050个结果
POJ 3468 A Simple Problem with Integers(线段树 区间更新)
Description You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other ...
分类:其他好文   时间:2014-08-05 11:15:59    阅读次数:243
POJ 1651 Multiplication Puzzle (区间DP)
Description The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points eq...
分类:其他好文   时间:2014-08-05 11:12:25    阅读次数:267
[leecode]Evaluate Reverse Polish Notation
Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may ...
分类:其他好文   时间:2014-08-05 10:57:19    阅读次数:184
[leetcode]Candy
CandyThere areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following ...
分类:其他好文   时间:2014-08-05 02:55:38    阅读次数:179
LeetCode第四题,Add Two Numbers
题目原文: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:其他好文   时间:2014-08-05 00:51:58    阅读次数:257
LeetCode——Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant ...
分类:其他好文   时间:2014-08-05 00:51:38    阅读次数:249
STL--F - Sequence(n*m->求最小的前m个和)
F - Sequence Time Limit:6000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Given m sequences, each contains n non-negative integer. Now we ma...
分类:其他好文   时间:2014-08-05 00:51:18    阅读次数:284
uva------(11464)Even Parity
DEven ParityInput:Standard InputOutput:Standard OutputWe have a grid of sizeNxN. Each cell of the grid initially contains a zero(0) or a one(1).Thepar...
分类:其他好文   时间:2014-08-05 00:14:48    阅读次数:341
poj 1979 Red and Black
Red and Black Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 22300   Accepted: 12041 Description There is a rectangular room, covered with square tiles. Each ...
分类:其他好文   时间:2014-08-04 21:30:48    阅读次数:263
POJ 2886 Who Gets the Most Candies? (线段树)
Description N children are sitting in a circle to play a game. The children are numbered from 1 to N in clockwise order. Each of them has a card with a non-zero integer on it in his/her hand. The ...
分类:其他好文   时间:2014-08-04 17:57:27    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!