Description
Input
Output
Sample Input
0
Sample Output
1
HINT
Source
NCPC 2014
题目我没看,直接看公式和输出要求就开始做了,意思就是求公式。。
明显大数,...
分类:
其他好文 时间:
2015-04-26 18:23:45
阅读次数:
128
Description
Input
Output
Sample Input
1 2
0 1 1
1 0 0
Sample Output
possible
题意:给出火车容量c,站点数n
对于每个站点给出上车人数,下车人数和等待人数
问最后是否能按要求完成旅途
思路:这道题理解...
分类:
其他好文 时间:
2015-04-26 18:23:19
阅读次数:
136
Description
Input
Output
Sample Input
1 4 1 4
1 6 1 6
Sample Output
Emma
HINT
Source
NCPC 2014
题意:两个人丢色子,每人有两个色子,给出色子的大小,要...
分类:
其他好文 时间:
2015-04-26 18:22:34
阅读次数:
144
Description
Input
Output
Sample Input
6
1 2 3 4 5 6
7 6 5 4 3 1
Sample Output
impossible
HINT
Source
NCPC 2014
题意:给出...
分类:
其他好文 时间:
2015-04-26 18:21:34
阅读次数:
113
#include
#include
#include
using namespace std;
double sumg,sume;
int ga1,gb1,ga2,gb2,ea1,eb1,ea2,eb2;
int main ()
{
while (scanf("%d%d%d%d",&ga1,&gb1,&ga2,&gb2)!=EOF)
{
...
分类:
其他好文 时间:
2015-04-26 18:21:09
阅读次数:
124
#include
#include
#include
using namespace std;
int a[100005];
int dp[100005];
int main()
{
int n;
while(scanf("%d",&n)==1)
{
for(int i=1;i<=n;i++)
sc...
分类:
其他好文 时间:
2015-04-26 18:20:19
阅读次数:
137
Description有个脑筋急转弯是这样的:有距离很近的一高一低两座桥,两次洪水之后高桥被淹了两次,低桥却只被淹了一次,为什么?答案是:因为低桥太低了,第一次洪水退去之后水位依然在低桥之上,所以不算“淹了两次”。举例说明:假定高桥和低桥的高度分别是5和2,初始水位为1第一次洪水:水位提高到6(两个...
分类:
编程语言 时间:
2015-04-26 08:05:49
阅读次数:
199
http://acm.csu.edu.cn/OnlineJudge/problem.php?id=13351335: 高桥和低桥Time Limit:1 SecMemory Limit:128 MBSubmit:802Solved:221[Submit][Status][Web Board]Desc...
分类:
其他好文 时间:
2015-04-25 21:00:28
阅读次数:
218
考虑如下的代码:class Shape{public: enum ShapeColor{Red, Green, Blue}; virtual void draw(ShapeColor color = Red) const = 0; ...};class Rectangle: pub...
分类:
其他好文 时间:
2015-04-24 16:16:13
阅读次数:
117
目录目录
题目
思路一
思路二题目Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where...
分类:
其他好文 时间:
2015-04-23 13:33:11
阅读次数:
158