代码改变世界

阅读排行榜

UESTC OJ 1647Battery Charging 模拟题

2012-05-06 15:14 by javaspring, 221 阅读, 收藏,
摘要: 题意很简单,就是判断在把手机卖出之前最多能玩多少天,能玩手机的前提是要有足够的电量。第i天充电能获得i单元的电量,第i天玩手机需要消耗i单位的电量。 思路:模拟,能玩的时候就玩,因为数据范围过大,模拟的时候不能一天一天模拟,需要跳跃式模拟。题目:http://acm.uestc.edu.cn/problem.php?pid=1647ac代码:#include <iostream> #include <cstdio> using namespace std; int main() { int numcase; scanf("%d",&numca 阅读全文

杭电 2846 字典树变形

2012-02-18 17:51 by javaspring, 221 阅读, 收藏,
摘要: 题目:RepositoryTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1192Accepted Submission(s): 417Problem DescriptionWhen you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search sys 阅读全文

机房收费系统测试

2011-11-06 16:49 by javaspring, 221 阅读, 收藏,
摘要: 昨天晚上找了崔成龙帮忙把新写完的机房收费系统测试了一遍.因为有第一次的经验,这次比上次错误少多了.不过还是测出了一些问题.1、学生基本信息维护功能中,点击DataGridView列标题可以排序,导致获取行信息不对称。解决:搜索MSDN找到DataGridView,在它的事件说明中,发现列标题的单击事件,可以在这个事件中处理信息不对称的问题。2、基本数据合理性判断,例如最小充值金额不能大于最大充值金额,不能小于0,准备时间不能大于单位计费时间等等解决:根据基本常识,在相应的方法中加入判断即可。3、查询学生信息,缺少一个查不到信息的判断,否则导致相应的更新信息文本框获取出错解决:加上判断即可4、用 阅读全文

数论之求欧拉函数

2011-09-24 09:10 by javaspring, 221 阅读, 收藏,
摘要: 简单的求欧拉函数的值,留下来做个模板。。。。。。。。。。题目:Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such that a = xy and b = xz.InputThere are several test cases. For each test c 阅读全文

Eclipse安装SVN

2012-08-25 15:00 by javaspring, 220 阅读, 收藏,
摘要: SVN - http://subclipse.tigris.org/update_1.0.x 阅读全文
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 126 下一页