摘要: 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 樱花落舞 阅读(189) 评论(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 樱花落舞 阅读(210) 评论(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 樱花落舞 阅读(251) 评论(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 樱花落舞 阅读(297) 评论(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 樱花落舞 阅读(265) 评论(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 樱花落舞 阅读(175) 评论(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 樱花落舞 阅读(232) 评论(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 樱花落舞 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Description One company of IT City decided to create a group of innovative developments consisting from 5 to 7 people and hire new employees for it. A 阅读全文
posted @ 2016-02-24 20:35 樱花落舞 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Description After a probationary period in the game development company of IT City Petya was included in a group of the programmers that develops a ne 阅读全文
posted @ 2016-02-22 22:20 樱花落舞 阅读(233) 评论(0) 推荐(0) 编辑