摘要:
A Phoenix and Balance 题意:给定n个数,从1-n分别是2^1,2^2……2^n,然后把他们分成个数相同的2部分,问如何分才能使得a-b的绝对值最小 题解: 根据各个值可以发现2^n一定比前面的所有数字相加都大,就是2^n>2^n-1+2^n-2……2^1,所以把最大值给一边,然 阅读全文
摘要:
A - Balloons There are quite a lot of ways to have fun with inflatable balloons. For example, you can fill them with water and see what happens. Grigo 阅读全文
摘要:
A Electric Bill To encourage customers to conserve energy (and protect the environment), the electric companies typically have a lower rate for the fi 阅读全文
摘要:
C. Are They All Integers? 题意:是给定n个数字判断对任意的(a[j]-a[i])/a[k]一定要是整数。 题解: 一开始以为用枚举会超时不过还是试了下,没想到没超时,直接过了,题目很简单,简单枚举就好。 #include<iostream> using namespace 阅读全文
摘要:
A. Majestic 10 The movie "Magnificent 7" has become a western classic. Well, this year we have 10 coaches training the UCF programming teams and once 阅读全文
摘要:
B Breaking Branches Your parents decsided that it would be “fun” to spend the entire Sunday walking near the Mookerheide close to Nijmegen. Although y 阅读全文