Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
分类:
其他好文 时间:
2017-05-12 22:26:47
阅读次数:
233
从西溪北苑出发,时间充裕,比较悠闲,打算坐公交前往,也打算做下科目四模拟题,顺便欣赏沿途的风景(去的时候需要看题目,回来的时候可以放松,哈哈哈),路线如下。 早上7点半出发,出去吃个早餐,步行到文一社区-公交车站,做382路公交到汽车西站,如下图所示: 到达汽车西站后下车,去找596公交车的上车点, ...
分类:
其他好文 时间:
2017-05-07 10:16:09
阅读次数:
245
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2017-05-06 19:57:00
阅读次数:
134
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2017-05-05 23:03:15
阅读次数:
272
Fighting the Landlords 大意: 斗地主。。。。 分别给出两把手牌,肯定都合法。每张牌大小顺序是Y (i.e. colored Joker) > X (i.e. Black & White Joker) > 2 > A (Ace) > K (King) > Q (Queen) > ...
分类:
其他好文 时间:
2017-05-05 10:43:21
阅读次数:
191
题意:给你一个n*n的全是0的矩阵,和k个数字“1”,让你把这k个数字1按照从上到下,从左到右的顺序构建出来 思路:模拟即可 代码: ...
分类:
其他好文 时间:
2017-05-02 21:05:49
阅读次数:
215
题目链接:http://codeforces.com/problemset/problem/2/A A. Winner time limit per test 1 second memory limit per test 64 megabytes input standard input outpu ...
题目大意 将一个含有+,-,^,()的表达式按照运算顺序转换成树状的形式。 解题分析 用递归的方式来处理表达式,首先直接去掉两边的括号(如果不止一对全部去光),然后找出不在括号内且优先级最低的符号。如果优先级相同,则如果是左结合性(+,-,*,/)则选择最右边的一个,如果是右结合性(^)则选择最最左 ...
分类:
其他好文 时间:
2017-05-01 01:24:12
阅读次数:
300
题目链接:https://vjudge.net/problem/UVA-11992 题意:n*m的矩阵,每次对一个子矩阵操作,有三种操作:加x,设置为x,查询。查询返回子矩阵和、最小值、最大值 n很小(<=20),所以可以开20棵线段树,每次操作按行更新。 特别小心put和add两个延迟标记,坑老惨 ...
分类:
其他好文 时间:
2017-04-30 01:02:58
阅读次数:
219