自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(107)
  • 收藏
  • 关注

转载 ZOJ Problem Set–1712 Skew Binary

Time Limit: 2 Seconds Memory Limit: 65536 KB When a number is expressed in decimal, the kth digit represents a multiple of 10 k. (Digits are numbered from right to left, where the least sig...

2019-09-23 21:41:51 105

转载 ZOJ Problem Set–1760 Doubles

Time Limit: 2 Seconds Memory Limit: 65536 KB As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and a...

2019-09-23 21:41:49 103

转载 ZOJ Problem Set–1622 Switch

Time Limit: 2 Seconds Memory Limit: 65536 KB There are N lights in a line. Given the states (on/off) of the lights, your task is to determine at least how many lights should be switched (fr...

2019-09-23 21:41:46 160

转载 ZOJ Problem Set–1514 Fake Tickets

Time Limit: 2 Seconds Memory Limit: 65536 KB Your school organized a big party to celebrate your team brilliant win in the prestigious, worldfamous ICPC (International Collegiate Poetry C...

2019-09-23 21:41:44 150

转载 ZOJ Problem Set–1489 2^x mod n = 1

Time Limit: 2 Seconds Memory Limit: 65536 KB Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the m...

2019-09-23 21:41:41 94

转载 ZOJ Problem Set–1251 Box of Bricks

Time Limit: 2 Seconds Memory Limit: 65536 KB Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built...

2019-09-23 21:41:37 94

转载 ZOJ Problem Set–1295 Reverse Text

Time Limit: 2 Seconds Memory Limit: 65536 KBIn most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. A...

2019-09-23 21:41:34 112

转载 ZOJ Problem Set - 2965 Accurately Say "CocaCola"!

ZOJ Problem Set - 2965Accurately Say "CocaCola"!Time Limit:1 Second Memory Limit:32768 KBIn a party held by CocaCola company, several students stand in a circle and play a game....

2019-09-23 21:41:32 128

转载 ZOJ Problem Set - 2947 Abbreviation

ZOJ Problem Set - 2947AbbreviationTime Limit:1 Second Memory Limit:32768 KBWhen a Little White meets another Little White:Little White A: (Surprised) !Little White B: ?Little W...

2019-09-23 21:41:29 78

转载 ZOJ Problem Set–1797 Least Common Multiple

Time Limit: 2 Seconds Memory Limit: 65536 KB The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set....

2019-09-23 21:41:28 87

转载 ZOJ Problem Set - 2932 The Seven Percent Solution

ZOJ Problem Set - 2932The Seven Percent SolutionTime Limit:1 Second Memory Limit:32768 KBUniform Resource Identifiers (or URIs) are strings likehttp://icpc.baylor.edu/icpc/,mai...

2019-09-23 21:41:27 93

转载 ZOJ Problem Set–1763 A Simple Question of Chemistry

Time Limit: 2 Seconds Memory Limit: 65536 KB Your chemistry lab instructor is a very enthusiastic graduate student who clearly has forgotten what their undergraduate Chemistry 101 lab exper...

2019-09-23 21:41:25 77

转载 ZOJ Problem Set–2417 Lowest Bit

Time Limit: 2 Seconds Memory Limit: 65536 KB Given an positive integer A (1 <= A <= 100), output the lowest bit of A. For example, given A = 26, we can write A in binary form as 11...

2019-09-23 21:41:22 66

转载 java的反射应用

手头正在做一个项目,在项目中很多地方为了开发的快捷,往往我们总工程师就会要求我们尽量为一组功能相仿的模块写通用的代码,这样可以最大程度的减少工作量。虽然开始写的通用成都高的,可复用程度高的代码会很痛苦,几个算法的设计会让人抓狂!但是一旦完成了,对于我个人来说,那是很兴奋的,这种兴奋,就像当初在学校的时候完成一道理科题目一样,难以抑制。对于项目组来说,那也是一劳永逸的事情。最近碰到的是...

2019-09-23 21:41:22 82

转载 ZOJ Problem Set–1402 Magnificent Meatballs

Time Limit: 2 Seconds Memory Limit: 65536 KB Sam and Ella run a catering service. They like to put on a show when serving meatballs to guests seated at round tables. They march out of the k...

2019-09-23 21:41:19 120

转载 ZOJ Problem Set–2781 Rounders

很久没有再做算法题了,做作算法题,就当是休闲娱乐了。下面是一道简单的题目,难题我也没有能力解,只能拿简单题开刀了。 Rounders Time Limit: 1 Second Memory Limit: 32768 KB Introduction For a given number, if greater than ten, round it to the neare...

2019-09-23 21:41:19 87

转载 ZOJ Problem Set–1405 Tanning Salon

Time Limit: 2 Seconds Memory Limit: 65536 KB Tan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no beds available, t...

2019-09-23 21:41:16 73

转载 ZOJ Problem Set–1526 Big Number

Time Limit: 10 Seconds Memory Limit: 32768 KB In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, enc...

2019-09-23 21:41:14 82

转载 我对设计模式的理解

很久很久以前,我问我的朋友:“现在有什么好书可以研究研究的啊?”“设计模式啊。”他不假思索的回答我。想想也是,设计模式确实是一本经典的书,于是乎我又开始了《设计模式》这本书的阅读过程。本人对于设计模式的理解有限,而且限于个人能力,说实在的,在开始看设计模式这本书的时候,我就已经有些力不从心了,而且又了放弃的念头。因为翻开书第一页,我就已经被弄懵了。开篇第一个模式,我已经吃不透...

2019-09-23 21:41:13 115

转载 Access数据库导出到其它数据库

存在于access中的所有数据,可以通过非常简单的办法导出到其它数据库中。 方法如下: 在access中右击需要导出的表 点击导出: 此时可以看到access提供的所有的导出方法,这里为了导出到其它数据库,我选择ODBC数据库 点击确定,此时弹出一个ODBC选择的对话框,选择你已经建立的ODBC连接即可。 例如,我将数据库导出到了SqlServer 2008中...

2019-09-23 21:41:11 1717

转载 好久不见

哈哈哈,好久没有到博客园逛了,还真有点怀念。记得以前曾经有过一种想法,坚持每天都发一篇随笔,但是现在看来,是不可能了。自己坚持不住。有这份毅力的人,估计也不会是什么一般人,而我,只是一个一般人,哈哈哈哈~~转载于:https://www.cnblogs.com/malloc/archive/2010/07/20/1781645.html...

2019-09-23 21:41:10 48

转载 ZOJ Problem Set–1494 Climbing Worm

Time Limit: 2 Seconds Memory Limit: 65536 KB An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute befo...

2019-09-23 21:41:09 102

转载 ZOJ Problem Set–1292 Integer Inquiry

Time Limit: 2 Seconds Memory Limit: 65536 KB One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explore...

2019-09-23 21:41:07 62

转载 为了实现相同账号不能重复登录功能做的努力

就像QQ那样的,相同的一个QQ账号是不可以同时在不同的地方登陆的。QQ采用的方式是,采用相同账号后登陆的用户将会把先登录的用户“挤掉”。但是我觉得,这样做并不是做好的做法。考虑一种情况,后一个登录的用户是非法的,这样一来,这个非法的用户就把前一个合法的用户“挤掉”了,如果能够实现相同账号始终只能登录一次,在登录状态下,后登陆的用户发出的登录请求被拒绝,那么,只要合法用户始终在线,非法用户...

2019-09-23 21:41:07 785

转载 ZOJ Problem Set–1216 Deck

Time Limit: 2 Seconds Memory Limit: 65536 KB Scenario A single playing card can be placed on a table, carefully, so that the short edges of the card are parallel to the table's edge, and...

2019-09-23 21:41:05 77

转载 C++指针之数据成员指针

很久没有在学习C++了,以前掌握的东西,现在也忘记的差不多了,偶尔想起了一些,顺便就记下来吧,省的我下次再想到的时候,又要纠结老半天才能想起来。 C++指针,我觉得应该可以分为两类:数据指针和函数指针。其中,数据指针也包括两类:普通数据指针和成员数据指针;函数指针也包括普通函数指针和成员函数指针。在学习C++的过程中,首先接触到的指针问题,大多是普通的数据指针,这一类指针是应用的很多的...

2019-09-23 21:41:04 540

转载 ZOJ Problem Set–1205 Martian Addition

Time Limit: 2 Seconds Memory Limit: 65536 KB In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, the...

2019-09-23 21:41:03 74

转载 让我纠结了很久的JDBC !

用Java EE的人都知道了,当需要连接到数据库的时候必定需要用到JDBC。终于,今天我也遇到了这个问题。对于像我这样的初学者来说,要搞定这个JDBC还是有一定困难的。至少我自己就用了整整一个下午加一个晚上才搞定这个东西,比较囧。不说废话了,直接把方法写下来,即方便自己以后查看,另一方面也方便像我这样的初学者查阅。 首先,我们必须下载JDBC Driver(我用的是...

2019-09-23 21:41:01 66

转载 ZOJ Problem Set - 2970 Faster, Higher, Stronger

ZOJ Problem Set - 2970Faster, Higher, StrongerTime Limit:1 Second Memory Limit:32768 KBIn the year 2008, the 29th Olympic Games will be held in Beijing. This will signify the pro...

2019-09-23 21:40:58 111

转载 让我惊讶的效率!

  以前一个很平常的问题,就是怎么去计算大数的问题。当然这里的大数不是说几万或者几十万这样的数字,而是那些……反正就是很大很大的数字,大到我都念不出来。要处理大数,很早以前,我是用一个字符串来模拟数值计算的,感觉算法上没有问题,但是效率上就低的有点让人不能接受了。后来才有同学告诉我,其实可以用数组的,用数字数组,这样一来,操作上跟我用字符串没有什么区别,但是计算的效率上就会大出不少。我也...

2019-09-23 21:40:58 52

转载 杭州的这四季

都说“上有天堂,下有苏杭”,这苏州市什么情况我就不知道了,没有在那边生活过。但是杭州,我敢保证,绝对不是什么天堂!一年有四季,每一季都有不同的特点,这可说是四季分明了。话说这四季分明却也不是什么坏事,而且还有很多人都很喜欢呢。但是杭州的四季,都有不同的让人真的是“难忘”的记忆。先说说这春天。“冬天过去了,春天还会远吗?”没错,冬天过去了,来临的当然就是春天了。春暖花开,是大地恢复活力...

2019-09-23 21:40:56 206

转载 ZOJ Problem Set - 2736 Daffodil number

Daffodil numberTime Limit:1 Second Memory Limit:32768 KBThe daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit n...

2019-09-23 21:40:55 233

转载 ZOJ Problem Set - 3418 Binary Number

Time Limit: 2 Seconds Memory Limit: 65536 KBFor 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3...

2019-09-23 21:40:53 60

转载 ZOJ Problem Set – 1016 Parencodings

原题: Parencodings Time Limit: 1 Second Memory Limit: 32768 KB Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways: By an integer se...

2019-09-23 21:40:53 64

转载 ZOJ Problem Set - 1090 The Circumference of the Circle

The Circumference of the Circle Time Limit: 1 Second Memory Limit: 32768 KB To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But wh...

2019-09-23 21:40:51 165

转载 假期小结

这是我最后一个假期了,确切的说,是最后一个寒假,马上就要结束校园生活走向社会,突然有一种失落。也许是一种胆怯,长时间的躲在校园这样一个被保护的对象,突然之间要自己去面对这个残酷的社会,有的是一种无奈,也是不知所措。不过在这种时候,我想,我最需要,是勇气和对未来的憧憬。未来从来就不是梦,我是那种心理特别阳光的人,对未来的美好憧憬,使得生活更加有动力。 从学校里...

2019-09-23 21:40:50 118

转载 u Calculate e

很久没有做算法题了,其实做一些算法题对自己也是有很大的帮助的,至少再闲暇无聊的时候,可以消磨时间也是一件很不错的休闲娱乐活动。下面是一道简单题,热身用的,呵呵,以后有空我要多做做这类算法题了,一方面娱乐,一方面也是扩展自己思维的一个很不错的选择。 原题如下: ZOJ Problem Set - 1113 u Calculate e Time Limit: 1 Second...

2019-09-23 21:40:48 129

转载 ZOJ Problem Set – 1048 Financial Management

Financial Management Time Limit: 1 Second Memory Limit: 32768 KB Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. ...

2019-09-23 21:40:47 63

转载 ZOJ Problem Set – 1045 HangOver

真的是不行了,很长时间没有玩过这玩意儿了,一下子上来,还真是很不习惯。碰了很多壁,终于碰到了这么一道相对比较简单的题目,也算是捡回一点点自信吧,希望以后会越走越好。 下面先给出原题: ZOJ Problem Set - 1045 HangOver Time Limit: 1 Second Memory Limit: 32768 KB Ho...

2019-09-23 21:40:45 191

转载 ZOJ Problem Set – 1657 Goldbach's Conjecture

长时间不做算法题了,这么简单的题目都然给我纠结了那么久,尴尬……先把题目贴出来,稍作分析,相信小孩子都可以看得懂了。原题:Goldbach's ConjectureTime Limit: 1 Second Memory Limit: 32768 KBGoldbach's Conjecture: For any even number n greater ...

2019-09-23 21:40:45 88

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除