上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: Hangover Time Limit:1000MS Memory Limit:10000KTotal Submit:15768 Accepted:6827 Description How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum over... 阅读全文
posted @ 2006-09-15 19:50 Jailu 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Exponentiation Time Limit:500MS Memory Limit:10000KTotal Submit:14295 Accepted:3105 DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. Fo... 阅读全文
posted @ 2006-09-15 16:14 Jailu 阅读(928) 评论(0) 推荐(0) 编辑
摘要: Faulty Odometer Time Limit:1000MS Memory Limit:65536KTotal Submit:1826 Accepted:1092 DescriptionYou are given a car odometer which displays the miles traveled as an integer. The odometer has a defec... 阅读全文
posted @ 2006-09-15 14:49 Jailu 阅读(750) 评论(0) 推荐(0) 编辑
摘要: Speed Limit Time Limit:1000MS Memory Limit:30000KTotal Submit:2997 Accepted:2094 DescriptionBill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many ... 阅读全文
posted @ 2006-09-15 04:32 Jailu 阅读(380) 评论(0) 推荐(0) 编辑
摘要: No Brainer Time Limit:1000MS Memory Limit:30000KTotal Submit:3797 Accepted:2753 DescriptionZombies love to eat brains. Yum. InputThe first line contains a single integer n indicating the number of d... 阅读全文
posted @ 2006-09-15 03:34 Jailu 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Gold Coins Time Limit:1000MS Memory Limit:30000KTotal Submit:3769 Accepted:2442 DescriptionThe king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold... 阅读全文
posted @ 2006-09-13 22:53 Jailu 阅读(701) 评论(3) 推荐(0) 编辑
摘要: 一直想知道Java和C#到底哪个跑得更快一些,刚好最近写了一个f(n) = n的C#程序,于是顺手改成Java看看二者在速度上的差别。关于f(n) = n的题目请参看文章:f(n) = n的优化(二) 一、Java和C#速度大比拼第一回合 把f(n) = n的优化(二) 文章中的C#代码照搬不变的转换成Java代: /**//* * Main.java * * Created on ... 阅读全文
posted @ 2006-09-13 16:11 Jailu 阅读(5901) 评论(4) 推荐(0) 编辑
摘要: 对程序做了进一步优化,目前总耗时1分20秒。代码如下: /**////jailusd@hotmail.com///2006-09-11////**//* * 题目:;Consider a function which, for a given whole number n, returns the number of ones required when writing out all numbe... 阅读全文
posted @ 2006-09-11 10:13 Jailu 阅读(530) 评论(2) 推荐(0) 编辑
摘要: 在上篇文章f(n) = n中,逻列了满足f(n) = n的N的值列表,今天对算法进行了优化,运算速度从原来的00:12:24.5781250减少到00:02:03.2031250,快了10分21秒,呵呵,看来算法的不同带来的效率也是完全不一样的!代码如下:点击下载运行文件 /**////jailusd@hotmail.com///2006-09-10////**//* * 题目:;Consider... 阅读全文
posted @ 2006-09-10 19:24 Jailu 阅读(417) 评论(1) 推荐(0) 编辑
摘要: 题目:Consider a function which, for a given whole number n, returns the number of ones required when writing out all numbers between 0 and n. For example, f(13)=6. Notice that f(1)=1. What is the next ... 阅读全文
posted @ 2006-09-09 20:06 Jailu 阅读(1095) 评论(2) 推荐(0) 编辑
摘要: 题目:Give 7 numbers, range from 0-13. The number of 0 is uncertain, other numbers can appear only once. 0 can be converted to any number. Please check whether or not it contains 5 continuous numbers 取到7... 阅读全文
posted @ 2006-09-09 03:14 Jailu 阅读(330) 评论(3) 推荐(0) 编辑
摘要: 今天在csdn上看到这么一个问题:从1到100,100个数字相加,和为100的算法,可以1位,2位,3位等,不限位数相加,数字不能重复,可以有多少种算法,并把代码贴出;可以这样: 1 + 99; 2 + 98;也可以这样: 1 + 2 + 97;更可以这样: 1 + 2 + 3 + 5 + 7 + 82;随手用C#写了一下实现代码,部分结果如... 阅读全文
posted @ 2006-09-05 04:53 Jailu 阅读(2643) 评论(0) 推荐(0) 编辑
摘要: Sandcastle初探——官方版的NDoc Sandcastle(CodeName)是微软出的用于编译发布组件(Assembly)信息的一个工具,基本上等同于NDoc(后者目前已经停止开发,最新版本仍然不支持.Net 2.0)。这个工具通过反射和Xslt技术,可以从dll文件及其xml注释(编译时加/doc参数得到),得到一个完整的帮助文档,格式可以是Html或CHM甚至是任何自定义的格式。当前... 阅读全文
posted @ 2006-09-04 21:54 Jailu 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 上一篇学习笔记:ActiveRecord学习笔记(一):初步接触 这篇学习笔记主要介绍了ActiveRecord如何处理One-To-One映射。本文涉及两个实体类User(用户)和NativePalce(祖籍),两个类是一对一的关系:主要内容:1.编写数据库脚本2.OneToOne属性说明3.编写实体类4.编写表示层调用代码一、编写数据库脚本 --User类对应的数据表Create Table ... 阅读全文
posted @ 2006-08-29 04:58 Jailu 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 最近开始接触Castle ActiveRecord,学习资料大部分是从网上找到的。这里要特别感谢TerryLee的系列文章:Castle 开发系列 ,在Castle的学习之路上,这个系列文章对我的影响是十分巨大的!除了这个系列文章之外,Castle的官方网站也是学习Castle的好去处!本篇学习笔记从一个简单对象的CURD操作入手,介绍ActiveRecord!主要内容:1.ActiveRecor... 阅读全文
posted @ 2006-08-29 04:57 Jailu 阅读(809) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页