数学找规律
文章平均质量分 89
程序员时间栈
这个作者很懒,什么都没留下…
展开
-
ZOJ3538Arrange the Schedule
/* ** 时间:2014-9-29 ** 知识点: ** 题意:F(n) = 3/4 * (3^L - (-1)^L) ; D(n) = (3^(L+1) + (-1)^L) / 4 ; */ #include #include #include #include #include #include #include #include using namespace std; typedef原创 2014-09-29 19:49:52 · 435 阅读 · 0 评论 -
Uva 10881 - Piotr's Ants
"One thing is for certain: there is no stopping them; the ants will soon be here. And I, for one, welcome our new insect overlords." Kent Brockman Piotr likes playing with ants. He has n原创 2015-07-09 10:15:14 · 359 阅读 · 0 评论 -
Uva11300 - Spreading the Wealth
F. Spreading the Wealth Problem A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has con原创 2015-07-09 10:09:39 · 337 阅读 · 0 评论 -
LA 3708 - Graveyard
Programming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy -- opened a special Alley of Contestant Memories (ACM) at the原创 2015-07-09 10:12:16 · 352 阅读 · 0 评论 -
3029 - City Game
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees, factories and buildin原创 2015-07-10 17:26:06 · 335 阅读 · 0 评论 -
LA11549 - Calculator Conundrum
Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k then repeatedly squares it until the result ove原创 2015-07-10 13:46:11 · 320 阅读 · 0 评论 -
2678 - Subsequence
A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subsequence原创 2015-07-10 15:53:36 · 407 阅读 · 0 评论 -
LA3695 - Distant Galaxy
Input There are multiple test cases in the input file. Each test case starts with one integer N , (1N100) , the number of star systems on the telescope. N lines follow, each line consists of two i原创 2015-07-10 21:13:56 · 522 阅读 · 0 评论 -
LA4253 - Archery
Korea's reputation in archery is well known because the Korean archery teams have been sweeping almost all gold, silver, and bronze medals in the Olympic Games. An archery game ICPC supported by NE原创 2015-07-22 10:22:31 · 530 阅读 · 0 评论