2013年11月16日

UASCO Count the rectangles

摘要: Count the rectanglesTimeLimit:2 Second MemoryLimit:64 MegabyteTotalsubmit:64 Accepted:36 DescriptionYou are given numbers of rectangles made of '1's and '0's.Calculate how many small rectangles which have four '1's on the four corners.InputThere are several test cases, each t 阅读全文

posted @ 2013-11-16 14:05 天使是一个善良的神 阅读(257) 评论(0) 推荐(0) 编辑

UASCO Photo

摘要: PhotoTimeLimit:2 Second MemoryLimit:64 MegabyteTotalsubmit:33 Accepted:13 DescriptionFJ wants to take pictures of his N cows (2 #include #include #include #include using namespace std;int can_be[1010][1010];int map[10010];int the_last_sum;int n,k;int a,b;struct Node{ int x; int posi;}v[10010];in... 阅读全文

posted @ 2013-11-16 14:03 天使是一个善良的神 阅读(309) 评论(0) 推荐(0) 编辑

USACO Breed Proximity

摘要: Breed ProximityTimeLimit:2 Second MemoryLimit:64 MegabyteTotalsubmit:46 Accepted:10 DescriptionFarmer John's N cows (1 #include #include #include #include using namespace std;int map[51010];int can_be[1100000];int the_last_max;int n,k;int main(){ while(~scanf("%d%d",&n,&k)) { m 阅读全文

posted @ 2013-11-16 14:02 天使是一个善良的神 阅读(569) 评论(0) 推荐(0) 编辑

导航