A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Be...
给你n个点,m条边,让你求一条路径,使得s到t的最短边最长这类问题,不是MST就是二分+判断例如:1.NOIP2013day1t3 火车运输 MST+树上倍增2.CH ROUND 52 A 拆地毯 类似MST3.BZOJ1614: [Usaco2007 Jan]Telephone Lines架设电....
分类:
其他好文 时间:
2014-08-19 23:57:05
阅读次数:
433
前三题早就写好了,一直在纠结D
A. Jzzhu and Children
题意:就是简单的模拟,给排成一队的孩子分发糖果,每个孩子有至少要得到的糖果数。
然后每次给队头的孩子分发m个糖果,如果他已经得到了足够的糖果(大于等于他想得到的
最少糖果数)那么他就出队,否则他就去队尾。问最后一个孩子的编号。
算法:队列模拟,水题~
#include
#includ...
分类:
其他好文 时间:
2014-08-19 22:29:25
阅读次数:
333
Miaomiao's Geometry
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1016 Accepted Submission(s): 276
Problem Description
There are N point...
分类:
其他好文 时间:
2014-08-19 22:29:15
阅读次数:
298
一个图片装饰器的制作一1 首先创建工程picDecor,2 然后从对象库中,拉出Round Rect按钮到视图中,3 为了显示用户所选择的图片,需要往视图里, 添加view Controller对象,如下图4 还要一个图片视图imageView来编辑一张图片和一个windows and Bars工具...
分类:
其他好文 时间:
2014-08-19 19:00:55
阅读次数:
344
Rounders
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7605
Accepted: 4931
Description
For a given number, if greater than ten, round it to the nearest...
分类:
其他好文 时间:
2014-08-19 16:38:54
阅读次数:
185
ProblemIn a kingdom there are prison cells (numbered 1 toP) built to form a straight line segment. Cells numberiandi+1are adjacent, and prisoners in a...
分类:
其他好文 时间:
2014-08-19 12:36:24
阅读次数:
234
Description:仅仅能对最多6位小数进行四舍五入,注意小数末尾自己主动去0不占位(比如:1.20f被看做:1.2f),当传入的小数为2.0f这种小数时视为整数返回0;被解决的问题:在Unity3d圣典中的四舍五入函数Mathf.Round返回浮点数 f 进行四舍五入最接近的整数。假设数字末尾...
分类:
其他好文 时间:
2014-08-19 12:24:54
阅读次数:
209
就是看无向图有几个连通块,答案就是2n-num。范围很小,就用矩阵来存图减少代码量。#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;...
分类:
其他好文 时间:
2014-08-19 04:54:43
阅读次数:
243
很有趣的题。想到了就非常简单,想不到就麻烦了。其实就是一种逆向思维:最后结果肯定是这样子:WBWBWBWB...BWBWBWBW...WBWBWBWB......里面有“-”的地方改成“-”就行了。但是我开始是正着想的,想每个点怎么处理,这还要看它周围点的状态,越想越麻烦。。。这题中体现的正难则反的...
分类:
其他好文 时间:
2014-08-19 03:33:14
阅读次数:
177