![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力枚举
提比-我有特殊的AC技巧
这个作者很懒,什么都没留下…
展开
-
Divisors - CF #256 (Div. 2) E (448E) 暴搜
Divisors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bizon the Champion isn't just friendly, he also is原创 2014-07-18 16:29:48 · 667 阅读 · 0 评论 -
Borya and Hanabi - CF#253 (Div. 2)C (442A) 状压暴力枚举
C. Borya and Hanabi time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Have you ever played Hanabi? If not, th原创 2014-07-17 12:37:12 · 943 阅读 · 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 · 1004 阅读 · 0 评论 -
Regular Polygon - UVa 10824 几何暴力
Regular Polygon Input: Standard Input Output: 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 · 839 阅读 · 0 评论 -
Circum Triangle - UVa 11186
Circum Triangle Input: Standard Input Output: 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 · 641 阅读 · 0 评论 -
SanguoSHA - HDU 4068 暴力枚举
SanguoSHA Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 854 Accepted Submission(s): 477 Problem Description Sanguosha has a si原创 2014-08-31 21:13:38 · 820 阅读 · 0 评论 -
Eat or Not to Eat? - UVa 10273 暴力
题意:给你n头奶牛,以及他们的周期产奶量,如果有一天只有一头奶牛产奶量最少,那么就杀掉这头牛,问最后有多少牛存活,并且最后杀死一头奶牛的时间。 思路:首先算出所有的周期的最小公倍数,如果这段时间内有奶牛被杀的话,那么重新计算,否则说明不会再有奶牛被杀。 AC代码如下: #include #include using namespace std; int T,t,n,pre[1010],nex原创 2015-03-20 16:10:19 · 608 阅读 · 0 评论