点点滴滴”

导航

2014年8月25日 #

poj 2251 Dungeon Master

摘要: #include #include #include #include using namespace std;#define maxx 45char map[maxx][maxx][maxx];int vis[maxx][maxx][maxx];int dir[6][3]={{1,0,0},{-1... 阅读全文

posted @ 2014-08-25 20:56 点点滴滴” 阅读(156) 评论(0) 推荐(0) 编辑

poj 3083 Children of th

摘要: #include #include#includeusing namespace std;int n,m;int r[4][2]= {{0,-1},{1,0},{0,1},{-1,0}};int l[4][2]= {{0,1},{1,0},{0,-1},{-1,0}};int vis[50][50]... 阅读全文

posted @ 2014-08-25 19:05 点点滴滴” 阅读(127) 评论(0) 推荐(0) 编辑

2014年8月23日 #

A - Excellent Team

摘要: Description Gibbs: Next! First Pirate: My wife ran off with my dog and I'm drunk for a month. Gibbs: Perfect. Next! Second Pirate: Me hav... 阅读全文

posted @ 2014-08-23 10:54 点点滴滴” 阅读(235) 评论(0) 推荐(0) 编辑

E - Tears of Drowned

摘要: Description Tia Dalma: Come. What service may I do you? You know I demand payment. Jack: I brought payment. Look. An undead monkey. Top that. T... 阅读全文

posted @ 2014-08-23 10:03 点点滴滴” 阅读(161) 评论(0) 推荐(0) 编辑

2014年8月20日 #

B - Big String

摘要: We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). Repeat the followi... 阅读全文

posted @ 2014-08-20 14:52 点点滴滴” 阅读(162) 评论(0) 推荐(0) 编辑

E - Evaluate Matrix Sum

摘要: DescriptionGiven a matrix, the elements of which are all integer number from 0 to 50, you are required to evaluate the square sum of its specified sub... 阅读全文

posted @ 2014-08-20 13:03 点点滴滴” 阅读(229) 评论(0) 推荐(0) 编辑

I - Dividing Stones

摘要: DescriptionThere are N stones, which can be divided into some piles arbitrarily. Let the value of each division be equal to the product of the number ... 阅读全文

posted @ 2014-08-20 12:32 点点滴滴” 阅读(172) 评论(0) 推荐(0) 编辑

F - Cookies Piles

摘要: DescriptionThe kids in my son's kindergarten made Christmas cookies with their teacher, and piled them up in columns. They then arranged the columns s... 阅读全文

posted @ 2014-08-20 11:19 点点滴滴” 阅读(192) 评论(0) 推荐(0) 编辑

G - Christmas Play

摘要: DescriptionMy kid's kindergarten class is putting up a Christmas play. (I hope he gets the lead role.) The kids are all excited, but the teacher has a... 阅读全文

posted @ 2014-08-20 10:22 点点滴滴” 阅读(173) 评论(0) 推荐(0) 编辑

A - Playground

摘要: My kid's school cleared a large field on their property recently to convert it into a playing area. The field is polygonal. The school administration ... 阅读全文

posted @ 2014-08-20 10:14 点点滴滴” 阅读(242) 评论(0) 推荐(0) 编辑