上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 58 下一页
摘要: Description Greatest common divisor GCD(a, b) of two positive integers a and b is equal to the biggest integer d such that both integers a and b are d 阅读全文
posted @ 2016-04-17 22:21 樱花落舞 阅读(217) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; #define DIGIT 4 //四位隔开,即万进制 #define DEPTH 10000 //万进制 #define MAX 100 //题目最大位数/4,要不大直接设为最大位数也行 typedef int bignum_t[MAX+1]... 阅读全文
posted @ 2016-04-17 11:11 樱花落舞 阅读(266) 评论(0) 推荐(0)
摘要: Description Consider 2n rows of the seats in a bus. n rows of the seats on the left and n rows of the seats on the right. Each row can be filled by tw 阅读全文
posted @ 2016-04-11 22:17 樱花落舞 阅读(195) 评论(0) 推荐(0)
摘要: Description You are given an array of n elements, you must make it a co-prime array in as few moves as possible. In each move you can insert any posit 阅读全文
posted @ 2016-04-11 22:08 樱花落舞 阅读(222) 评论(0) 推荐(0)
摘要: Description Mike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in an n × m grid, there's exact 阅读全文
posted @ 2016-04-11 21:54 樱花落舞 阅读(262) 评论(0) 推荐(0)
摘要: Description While Mike was walking in the subway, all the stuff in his back-bag dropped on the ground. There were several fax messages among them. He 阅读全文
posted @ 2016-04-09 10:54 樱花落舞 阅读(306) 评论(0) 推荐(0)
摘要: ULL C(int n,int m) { if(n<m) return 0; ULL ans=1; for(int i=0;i<m;i++) ans=ans*(ULL)(n-i)/(ULL)(i+1); return ans; } ULL A(int n,int m) { if(n<m) retur 阅读全文
posted @ 2016-03-01 20:01 樱花落舞 阅读(273) 评论(1) 推荐(0)
摘要: Description IT City company developing computer games decided to upgrade its way to reward its employees. Now it looks the following way. After a new 阅读全文
posted @ 2016-02-29 17:55 樱花落舞 阅读(185) 评论(0) 推荐(0)
摘要: Description The Department of economic development of IT City created a model of city development till year 2100. To prepare report about growth persp 阅读全文
posted @ 2016-02-24 21:15 樱花落舞 阅读(239) 评论(0) 推荐(0)
摘要: Description IT City company developing computer games invented a new way to reward its employees. After a new game release users start buying it activ 阅读全文
posted @ 2016-02-24 20:53 樱花落舞 阅读(298) 评论(0) 推荐(0)
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 58 下一页