摘要: 题目:HDU1017 A Mathmatical Curiosity 题目分析:水题。重点是输入输出格式。 阅读全文
posted @ 2016-05-16 09:46 VictorWei 阅读(392) 评论(0) 推荐(0)
摘要: 题目:HDU1013 Digital Roots 题目分析:刚开始没注意到输入数字特别大的情况,使用了输入整型数字,并且用了递归,然后就时间超时了。后来看别人的代码才知道这题是个“数论”题,仔细发现便可得result = (n-1)%9+1,而且输入用字符输入。 阅读全文
posted @ 2016-05-16 09:10 VictorWei 阅读(530) 评论(0) 推荐(0)
摘要: 问题:见1012 分析:水题,控制精度就好。 阅读全文
posted @ 2016-05-10 16:20 VictorWei 阅读(100) 评论(0) 推荐(0)
摘要: HDU 1004题目 输入: Input contains multiple test cases. Each test case starts with a number N (0 < N <= 1000) -- the total number of balloons distributed. 阅读全文
posted @ 2016-05-06 09:35 VictorWei 阅读(196) 评论(0) 推荐(0)
摘要: HDOJ 1001: 题目:输入一个整数n,计算sum(n)=1+2+3+...+n,每个测试案例输出间空一行。 分析:水题。注意在while循环里每计算一次要对sum值进行清零。 代码: 阅读全文
posted @ 2016-05-04 22:42 VictorWei 阅读(303) 评论(0) 推荐(0)
摘要: 【转】 网上有多种解决办法,我用最懒的一种,系统是Win7 X86,方法如下: C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\ 阅读全文
posted @ 2016-02-26 08:42 VictorWei 阅读(207) 评论(0) 推荐(0)
摘要: 刚开始以为Safari看不到网页的源代码,后来发现是自己错了,Safari浏览器也为网页开发者提供了很方便的调试功能。 1.点击菜单栏的Safari,进入偏好设置,点击高级,就会看到下面的页面 2.将下面的“在菜单栏中显示‘开发’菜单”打上勾,然后就可以看到菜单栏上多了一个“开发”选项。 3.在网页 阅读全文
posted @ 2016-01-28 20:53 VictorWei 阅读(2202) 评论(0) 推荐(0)
摘要: Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very ... 阅读全文
posted @ 2015-11-10 23:16 VictorWei 阅读(162) 评论(0) 推荐(0)
摘要: Problem DescriptionUniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux... 阅读全文
posted @ 2015-11-10 19:26 VictorWei 阅读(246) 评论(0) 推荐(0)
摘要: 栈:栈是一种数据结构,栈里元素的添加和删除只能在栈的末端进行。它是一种“后进先出”(LIFO)的数据结构。栈的操作:initializeStack:初始化栈,使得为一个空栈。destroyStack:清空栈里所有的元素,使得为一个空栈。isEmptyStack:判断栈是否为空,如果为空,返回true... 阅读全文
posted @ 2015-10-05 14:32 VictorWei 阅读(398) 评论(0) 推荐(0)