Do not spend all your time on training or studying - this way you will probably become very exhausted and unwilling to compete more. Whatever you do - have fun. Once you find programming is no fun anymore – drop it. Play soccer, find a girlfriend, study something not related to programming, just live a life - programming contests are only programming contests, and nothing more. Don't let them become your life - for your life is much more interesting and colorful. --Petr
\n
摘要:
#include #include #include #include #include #include #include using namespace std;int a[20];void print_permutation(int n, int a[], int cur){ int i... 阅读全文
posted @ 2014-07-07 15:12
Jeremy Wu
阅读(460)评论(0)推荐(0)
摘要:
思路来源:http://blog.csdn.net/niushuai666/article/details/6990421题目大意:初始时,有n个龙珠,编号从1到n,分别对应的放在编号从1到n的城市中。现在又2种操作:T A B,表示把A球所在城市全部的龙珠全部转移到B城市。(第一次时,因为A球所在... 阅读全文
posted @ 2014-05-06 11:00
Jeremy Wu
阅读(255)评论(0)推荐(0)
摘要:
思路来源:http://blog.csdn.net/sf____/article/details/24626739题目给出数据上限为200, 所以可以暴利所有区间。解题思路:for i in range(n): for j in range(n): create priority_queue... 阅读全文
posted @ 2014-04-28 21:05
Jeremy Wu
阅读(222)评论(0)推荐(0)
摘要:
打个表,记录1到下标为止所有数的XOR值即可 1 #include 2 #include 3 #include 4 using namespace std; 5 int array[1000001]; 6 int main(){ 7 int cnt, i, j, k, t, n, nu... 阅读全文
posted @ 2014-04-25 20:51
Jeremy Wu
阅读(225)评论(0)推荐(0)