上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页

2015年11月23日

codeforces 579B Finding Team Member

摘要: B. Finding Team MemberThere is a programing contest named SnakeUp, 2n people want to compete for it. In order to attend this contest, people need to f... 阅读全文

posted @ 2015-11-23 12:43 焰 阅读(277) 评论(0) 推荐(0) 编辑

codeforces 580A Kefa and First Steps

摘要: A. Kefa and First StepsKefa decided to make some money doing business on the Internet for exactly n days. He knows that on the i-th day (1 ≤ i ≤ n) he... 阅读全文

posted @ 2015-11-23 12:41 焰 阅读(237) 评论(0) 推荐(0) 编辑

codeforces 580B Kefa and Company

摘要: B. Kefa and CompanyKefa wants to celebrate his first big salary by going to restaurant. However, he needs company.Kefa has n friends, each friend will... 阅读全文

posted @ 2015-11-23 12:39 焰 阅读(204) 评论(0) 推荐(0) 编辑

codeforces 580D Kefa and Dishes

摘要: C. Kefa and ParkKefa decided to celebrate his first big salary by going to the restaurant.He lives by an unusual park. The park is a rooted tree consi... 阅读全文

posted @ 2015-11-23 12:37 焰 阅读(449) 评论(0) 推荐(0) 编辑

2015年11月9日

codeforces 593B Anton and Lines

摘要: B. Anton and LinesThe teacher gave Anton a large geometry homework, but he didn't do it (as usual) as he participated in a regular round on Codeforces... 阅读全文

posted @ 2015-11-09 19:37 焰 阅读(222) 评论(0) 推荐(0) 编辑

2015年10月31日

poj 2337 Catenyms(欧拉路径)

摘要: CatenymsDescriptionA catenym is a pair of words separated by a period such that the last letter of the first word is the same as the last letter of th... 阅读全文

posted @ 2015-10-31 17:53 焰 阅读(333) 评论(0) 推荐(0) 编辑

2015年10月30日

nyoj 86 找球号(一)

摘要: 找球号(一)描述在某一国度里流行着一种游戏。游戏规则为:在一堆球中,每个球上都有一个整数编号i(0 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 int m,n; 9 setS;10 sc... 阅读全文

posted @ 2015-10-30 18:52 焰 阅读(219) 评论(0) 推荐(0) 编辑

nyoj 225 小明求素数积

摘要: 小明求素数积描述小明最近遇到了一个素数题,是给你一个正整数N(2= 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int mod=1000000; 8 9 int p[1005];10 int pro[1005... 阅读全文

posted @ 2015-10-30 18:20 焰 阅读(173) 评论(0) 推荐(0) 编辑

nyoj 168 房间安排

摘要: 房间安排描述2010年上海世界博览会(Expo2010),是第41届世界博览会。于2010年5月1日至10月31日期间,在中国上海市举行。本次世博会也是由中国举办的首届世界博览会。上海世博会以“城市,让生活更美好”(Better City,Better Life)为主题,将充分探索21世纪城市生活。... 阅读全文

posted @ 2015-10-30 18:01 焰 阅读(267) 评论(0) 推荐(0) 编辑

2015年10月28日

nyoj 46 最少乘法次数

摘要: 最少乘法次数描述给你一个非零整数,让你求这个数的n次方,每次相乘的结果可以在后面使用,求至少需要多少次乘。如24:2*2=22(第一次乘),22*22=24(第二次乘),所以最少共2次;输入第一行m表示有m(1 2 using namespace std; 3 4 int main() 5 { 6... 阅读全文

posted @ 2015-10-28 12:51 焰 阅读(162) 评论(0) 推荐(0) 编辑

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页

导航