
模拟
sdljtyk
自己选择的路,哪怕再苦再累也要豪迈的走下去。
展开
-
2011年山东ACM第二届省赛 Mathman Bank(模拟)
Mathman BankTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述 With the development of mathmen's mathematics knowlege, they have finally invented computers. Therefore, they want to原创 2016-04-27 17:09:02 · 751 阅读 · 0 评论 -
1000的阶乘
求1000的阶乘 #include #define n 1000int a[10000];int main(){ int k=0,len=0; a[0]=1; for(int i=1;i<=n;i++) { k=0; for(int j=0;j<=len;j++) { a[j]=a[j]*i+k; k=a[j]/10;//进位 a[j]原创 2017-01-04 11:33:31 · 1311 阅读 · 0 评论 -
HDU5007——Post Robot(2014 年 西安区域赛)
Post RobotTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 193 Accepted Submission(s): 164Problem DescriptionDT is a big fan o原创 2016-09-04 12:28:04 · 772 阅读 · 0 评论 -
HDU1200——To and Fro
To and FroTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6441 Accepted Submission(s): 4413Problem DescriptionMo and Larr原创 2016-10-30 16:45:43 · 516 阅读 · 0 评论 -
整除2011
多少个1组成的整数可以被2011整除? 解:要想求多少个1组成的数字可以被2011整除,很明显那个数回超出整数范围,所以要模拟除法的过程。 除法分为整除和取摸运算两部分,从被除数的第一位开始对除数进行整除运算商结果作为商的第一位,取摸运算结果乘以10再加上被除数的下一位数字作为新的被除数, 对除数进行重复运算。 此题只要求得到位数,不要求原创 2016-09-08 13:20:20 · 626 阅读 · 0 评论 -
POJ2121——Inglish-Number Translator
Inglish-Number TranslatorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5247 Accepted: 2064DescriptionIn this problem, you will be given one or more in原创 2016-09-04 13:17:39 · 931 阅读 · 0 评论 -
POJ3664——Election Time
Election TimeTime Limit:1000MS Memory Limit:65536K Total Submissions:8780 Accepted:4591 DescriptionThe cows are having their first election after overthrowing the tyrannica...原创 2016-09-04 12:58:56 · 734 阅读 · 0 评论 -
HDU1008——Elevator
ElevatorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 63914 Accepted Submission(s): 35177Problem DescriptionThe highest build原创 2016-08-06 14:57:21 · 523 阅读 · 0 评论 -
HDU1283——最简单的计算机
最简单的计算机Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6916 Accepted Submission(s): 3848Problem Description一个名叫是PigHeadThree的研究原创 2016-08-05 10:03:57 · 753 阅读 · 0 评论 -
POJ1852——Ants
AntsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 16957 Accepted: 7262DescriptionAn army of ants walk on a horizontal pole of length l cm, each with a原创 2017-03-01 21:44:28 · 465 阅读 · 0 评论