随笔分类 -  ACM

摘要:Edge DetectionTime Limit:1000MSMemory Limit:10000KTotal Submissions:15307Accepted:3445DescriptionIONU Satellite Imaging, Inc. records and stores very large images using run length encoding. You are to write a program that reads a compressed image, finds the edges in the image, as described below, an 阅读全文
posted @ 2013-06-14 19:53 Finlay Liu 阅读(465) 评论(0) 推荐(0)
摘要:Maya CalendarTime Limit:1000MSMemory Limit:10000KTotal Submissions:58623Accepted:18070DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long ye 阅读全文
posted @ 2013-06-11 10:27 Finlay Liu 阅读(220) 评论(0) 推荐(0)
摘要:DNA SortingTime Limit:1000MSMemory Limit:10000KTotal Submissions:73451Accepted:29334DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measu 阅读全文
posted @ 2013-06-10 10:22 Finlay Liu 阅读(363) 评论(0) 推荐(0)
摘要:BiorhythmsTime Limit:1000MSMemory Limit:10000KTotal Submissions:101515Accepted:31323DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods o 阅读全文
posted @ 2013-06-09 14:24 Finlay Liu 阅读(248) 评论(0) 推荐(0)
摘要:I Think I Need a HouseboatTime Limit:1000MSMemory Limit:10000KTotal Submissions:77638Accepted:33359DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 阅读全文
posted @ 2013-06-09 14:22 Finlay Liu 阅读(267) 评论(0) 推荐(0)
摘要:Financial ManagementTime Limit:1000MSMemory Limit:10000KTotal Submissions:104785Accepted:50227DescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio an 阅读全文
posted @ 2013-06-08 20:59 Finlay Liu 阅读(237) 评论(0) 推荐(0)
摘要:HangoverTime Limit:1000MSMemory Limit:10000KTotal Submissions:89330Accepted:43182DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) W 阅读全文
posted @ 2013-06-08 20:50 Finlay Liu 阅读(243) 评论(0) 推荐(0)
摘要:487-3279Time Limit:2000MSMemory Limit:65536KTotal Submissions:214502Accepted:37379DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by diali 阅读全文
posted @ 2013-06-08 20:49 Finlay Liu 阅读(363) 评论(0) 推荐(0)
摘要:求高精度幂Time Limit:500MSMemory Limit:10000KTotal Submissions:118427Accepted:28874Description对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如,对国债进行计算就是属于这类问题。现在要你解决的问题是:对一个实数R( 0.0 #include char str1[6]={0};//记录初始浮点数的数组 int num1[6]={0},num2[LEN]={0},num[LEN]={0};//记录转化为数字后的各位数 void mul() { int i,j; for(i=0;i=10) {... 阅读全文
posted @ 2013-06-05 21:48 Finlay Liu 阅读(327) 评论(0) 推荐(0)