随笔分类 -  暴力枚举+模拟

HDU 3013 Tetris 【恶心的模拟题俄罗斯方块】
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3013先发泄一下,这道题写了24+小时,太恶心了..感谢黑大的一个童鞋挑出了我思路的bugO(∩_∩)O~~看着他9000B+的代码开始羡慕后来..hiahia~~3000B+搞定~~82290752013-05-04 00:12:03Accepted30130MS332K3788 BG++Dream82290712013-05-04 00:10:42Presentation Error30130MS328K3790 BG++Dream82290692013-05-04 00:10:39Compilation 阅读全文
posted @ 2013-05-04 00:21 crying_Dream 阅读(588) 评论(1) 推荐(0)
POJ 2632 Crashing Robots【模拟题】
摘要:208K 16MS 2379B 2013-02-10 23:04:05 1A 蛇年第一A1》机器人有3种属性:横坐标x, 纵坐标y, 面向dir。因此用结构体存机器人的信息,规定E为0, N为1,w为2, S为3 2》 如果是向前走: if(方向==0) x++; if(方向==1) y++; if(方向==2) x--; if(方向==3) y--;3》转弯: 向走转n次:方向dir=(dir+n)%4; 向右转n次:方向dir=(dir-n%4+4)%4;4》判断是否和别的机器人发生碰撞,int visit[i][j]=k,表示坐标为(x, y)处有机器人k5》为了处... 阅读全文
posted @ 2013-02-10 23:46 crying_Dream 阅读(168) 评论(0) 推荐(0)
POJ 3125 Printer Queue【暴力模拟】
摘要:DescriptionThe only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get a single page of output.Because some jobs are more important than others, the Hacker 阅读全文
posted @ 2012-08-13 19:00 crying_Dream 阅读(938) 评论(0) 推荐(0)
HLG 1519 Tower Parking【模拟】
摘要:Description There is a new revolution in the parking lot business: the parking tower. The concept is simple: you drive your car into the elevator at the entrance of the tower, and the elevator and conveyor belts drag the car to an empty parking spot, where the car remains until you pick it up. When 阅读全文
posted @ 2012-08-06 00:24 crying_Dream 阅读(245) 评论(0) 推荐(0)
HLG 1513 Containers【暴力枚举】
摘要:Description At a container terminal, containers arrive from the hinterland, one by one, by rail, by road,or by small ships. The containers are piled up as they arrive. Then the huge cargo ships arrive, each one capable of carrying thousands of containers. The containers are loaded into the ships tha 阅读全文
posted @ 2012-08-06 00:16 crying_Dream 阅读(254) 评论(0) 推荐(0)