随笔分类 -  模拟

Applications
摘要:Recently, the ACM/ICPC team of Marjar University decided to choose some new members from freshmen to take part in the ACM/ICPC competitions of the next season. As a traditional elite university in ACM/ICPC, there is no doubt that application forms will fill up the mailbox. To constitute some powerfu 阅读全文

posted @ 2013-10-04 12:50 forevermemory 阅读(323) 评论(0) 推荐(0)

cube
摘要:Problem DescriptionMirko doesn’t like Latin homeworks so he made a bet with Slavko. Loser will be writing homeworks for both of them the entire month. Mirko wants to win so he designed this problem they could have something to bet on.At his desk he found a cube, with numbers 1 to 6 on its faces. Cub 阅读全文

posted @ 2013-08-07 11:24 forevermemory 阅读(206) 评论(0) 推荐(0)

ZZ的计算器
摘要:Problem DescriptionZZ自从上大学以来,脑容量就是以SB计算的,这个吃货竟然连算术运算也不会了,可是当今的计算机可是非常强大的,作为ACMer, 几个简单的算术又算得了什么呢?可是该怎么做呢?ZZ只想算简单的加减乘除,由于大脑钝化,ZZ连小数都没有概念了!Input有多组测试数据,每组测试数据为一个字符串,字符串为合法的算术运算,运算符号只包含+、-、*、/,数据为整数.Output请输出正确的结果,除数为0的时候,输出impossible。(结果保证在长整形之内)Sample Input1+1*22/2+1Sample Output32题意:简单的表达式计算只包含加减乘除题 阅读全文

posted @ 2013-07-25 08:54 forevermemory 阅读(250) 评论(0) 推荐(0)

HOJ1296 Polynomial Problem
摘要:Problem DescriptionWe have learned how to obtain the value of a polynomial when we were a middle school student. If f(x) is a polynomial of degree n, we can let If we have x, we can get f(x) easily. But a computer can not understand the expression like above. So we had better make a program to obta. 阅读全文

posted @ 2013-06-03 18:01 forevermemory 阅读(268) 评论(0) 推荐(0)

小Q系列故事——屌丝的逆袭
摘要:Problem Description 毕业于普通本科的小Q一直自称是资深屌丝,不仅学校不知名,甚至他自己在这个普通学校也是默默无闻——直到临近毕业的时候,班里5朵金花中的2位甚至从没和他说过话! 谁又能想到,如此不起眼的小Q在历经重重面试环节后,竟然如愿以偿加入了心仪已久的腾讯公司!消息刚刚传开的那几天,这在他们班甚至整个学院都是讨论的热门话题,如果这时候你还表示不知道小Q是谁,你都会被大家当作怪物的。 正所谓野百合也有春天,屌丝也有逆袭的那一天! 刚到腾讯大厦上班的那几天,小Q眼中的一切都是那么新鲜,连每天见到的前台MM在他眼中都胖的那么可爱。小Q就这样在紧张与兴奋的情... 阅读全文

posted @ 2013-05-22 17:29 forevermemory 阅读(496) 评论(0) 推荐(0)

Exponentiation
摘要:DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems. This problem requires that you write a program to compute the exact value of Rn where .. 阅读全文

posted @ 2013-05-17 11:08 forevermemory 阅读(177) 评论(0) 推荐(0)

Flo's Restaurant
摘要:Problem DescriptionSick and tired of pushing paper in the dreary bleary-eyed world of finance, Flo ditched her desk job and built her own restaurant.In the small restaurant, there are several two-seat tables, four-seat tables and six-seat tables. A single diner or a group of two diners should be a.. 阅读全文

posted @ 2013-05-14 12:29 forevermemory 阅读(211) 评论(0) 推荐(0)

What Are You Talking About
摘要:Problem DescriptionIgnatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves. Now Ignatius want to translate the history book into English. Can you help him?InputThe problem 阅读全文

posted @ 2013-02-26 14:25 forevermemory 阅读(188) 评论(0) 推荐(0)

统计斐波拉契数字
摘要:Problem E Time Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 11Accepted Submission(s) : 5Font: Times New Roman | Verdana | Georgia Font Size: ← →Problem DescriptionRecall the definition of the Fibonacci numbers:f1 := 1f2 := 2fn := fn-1 + fn-2 (n>=3) 阅读全文

posted @ 2012-11-25 11:34 forevermemory 阅读(175) 评论(0) 推荐(0)

电话号码转换
摘要:Problem Description企业喜欢用容易被记住的电话号码。让电话号码容易被记住的一个办法是将它写成一个容易记住的单词或者短语。例如,你需要给滑铁卢大学打电话时,可以拨打TUT-GLOP。有时,只将电话号码中部分数字拼写成单词。当你晚上回到酒店,可以通过拨打310-GINO来向Gino's订一份pizza。让电话号码容易被记住的另一个办法是以一种好记的方式对号码的数字进行分组。通过拨打必胜客的“三个十”号码3-10-10-10,你可以从他们那里订pizza。电话号码的标准格式是七位十进制数,并在第三、第四位数字之间有一个连接符。电话拨号盘提供了从字母到数字的映射,映射关系如下 阅读全文

posted @ 2012-11-19 21:07 forevermemory 阅读(1394) 评论(0) 推荐(0)

Imagination
摘要:Imagination Time Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 8Accepted Submission(s) : 3Font: Times New Roman | Verdana | Georgia Font Size: ← →Problem DescriptionThere are four matrixs blow , Can you image the NEXT matrix from the given information? 阅读全文

posted @ 2012-10-31 20:24 forevermemory 阅读(172) 评论(0) 推荐(0)

Three Cards
摘要:Three Cards Time Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 27Accepted Submission(s) : 4Font: Times New Roman | Verdana | Georgia Font Size: ← →Problem DescriptionLaoPei and A q are good friends with Debugcool and they like playing cards.There is a 阅读全文

posted @ 2012-10-31 17:26 forevermemory 阅读(295) 评论(0) 推荐(0)

模拟
摘要:最简单的计算机Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2907Accepted Submission(s): 1675Problem Description一个名叫是PigHeadThree的研究组织设计了一台实验用的计算机,命名为PpMm。PpMm只能执行简单的六种命令A,B,C,D,E,F;只有二个内存M1,M2;三个寄存器R1,R2,R3。六种命令的含义如下:命令A:将内存M1的数据装到寄存器R1中;命令B:将内存M2的数据装到寄 阅读全文

posted @ 2012-10-23 19:03 forevermemory 阅读(240) 评论(0) 推荐(0)