
暴力枚举
提比-我有特殊的AC技巧
这个作者很懒,什么都没留下…
展开
-
Divisors - CF #256 (Div. 2) E (448E) 暴搜
Divisorstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion isn't just friendly, he also is原创 2014-07-18 16:29:48 · 689 阅读 · 0 评论 -
Borya and Hanabi - CF#253 (Div. 2)C (442A) 状压暴力枚举
C. Borya and Hanabitime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHave you ever played Hanabi? If not, th原创 2014-07-17 12:37:12 · 965 阅读 · 1 评论 -
Vampire Numbers - UVALive 5779 暴力打表
The number 1827 is an interesting number, because 1827=21*87, and all of the same digits appear on both sides of the `='. The number 136948 has the same property: 136948=146*938.Such numbers are cal原创 2014-07-23 18:43:44 · 1038 阅读 · 0 评论 -
Regular Polygon - UVa 10824 几何暴力
Regular PolygonInput: Standard InputOutput: Standard Output A regular polygon is an n-sided polygon in which the sides are all the same length and are symmetrically placed about a common cente原创 2014-07-25 22:55:31 · 881 阅读 · 0 评论 -
Circum Triangle - UVa 11186
Circum Triangle Input: Standard InputOutput: Standard Output You will be given N distinct points on the boundary of a circle whose center is at the origin. As the points are on the same circle原创 2014-07-25 22:52:13 · 662 阅读 · 0 评论 -
SanguoSHA - HDU 4068 暴力枚举
SanguoSHATime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 854 Accepted Submission(s): 477Problem DescriptionSanguosha has a si原创 2014-08-31 21:13:38 · 837 阅读 · 0 评论 -
Eat or Not to Eat? - UVa 10273 暴力
题意:给你n头奶牛,以及他们的周期产奶量,如果有一天只有一头奶牛产奶量最少,那么就杀掉这头牛,问最后有多少牛存活,并且最后杀死一头奶牛的时间。思路:首先算出所有的周期的最小公倍数,如果这段时间内有奶牛被杀的话,那么重新计算,否则说明不会再有奶牛被杀。AC代码如下:#include#includeusing namespace std;int T,t,n,pre[1010],nex原创 2015-03-20 16:10:19 · 648 阅读 · 0 评论