自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (2)
  • 问答 (3)
  • 收藏
  • 关注

原创 1715_When Can We Meet?

The ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are so busy maniacally developing (possibly u

2013-03-29 09:49:50 479

原创 1622_Switch

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 (from on to off, or from off to on), in order to make the l

2013-03-29 08:53:59 413

原创 1514_Fake Tickets

Your school organized a big party to celebrate your team brilliant win in the prestigious, worldfamous ICPC (International Collegiate Poetry Contest). Everyone in your school was invited for an evenin

2013-03-28 16:42:21 531

原创 1414_Number Steps

Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the figure. For example, 1, 2, and 3 has been written at points (1,1), (2,0), and (3, 1) respect

2013-03-28 15:31:44 491

原创 1405_Tanning Salon

Tan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no beds available, the customer will turn around and leave, thus costing the

2013-03-28 14:45:48 587

原创 1402_Magnificent Meatballs

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 kitchen with pots of meatballs and start serving adjacent

2013-03-27 16:50:22 369

原创 1394_Polar Explorer

IntroductionYou are a intrepid 2-dimensional explorer located at the northern polar reaches of a distant 2-dimensional planet. Unfortunately, you have been assigned to explore the most boring plan

2013-03-26 19:15:10 733

原创 1383_Binary Numbers

Given a positive integer n, print out the positions of all 1's in its binary representation. The position of the least significant bit is 0.ExampleThe positions of 1's in the binary representa

2013-03-26 17:40:06 414

原创 1382_A Simple Task

Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o = 3 and p = 3.TaskWrite a program which for each data set:reads

2013-03-26 10:53:06 358

原创 1365_Mileage Bank

Mileage program of ACM (Airline of Charming Merlion) is really nice for the travelers flying frequently. Once you complete a flight with ACM, you can earn ACMPerk miles in your ACM Mileage Bank depend

2013-03-26 08:53:57 589

原创 1350_The Drunk Jailer

A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.One night, the jailer gets bored and decides to play a game.

2013-03-25 17:15:20 589

原创 1338_Up and Down Sequences

The quality of pseudo random-number generators used in some computations, especially simulation, is a significant issue. Proposed generation algorithms are subjected to many tests to establish their q

2013-03-24 21:26:54 502

转载 只用赋值、加1、循环三个操作实现一个减1的运算

“只用赋值、加1、循环三个操作实现一个减1的运算。”上面是原话,老师就给那么多信息,没有别的话了。高人们有代码的可以贴代码,随便你用什么语言,没代码的说说清楚思路也行。顺便帮忙看看哪些答案有错误啊。12345678910template typename T>

2013-03-18 23:21:24 648

原创 随机产生100以内所有整数

#include#include#includeusing namespace std;int main(){    vector bb;int count;int num;srand( (unsigned)time( NULL ) );while(bb.size()!=100){    count=0;num=rand()%100;for(

2013-03-16 22:55:27 2162

转载 C++函数的数组参数—向函数传递数组

数组的存储空间很大,如果能够把它作为参数传递给函数,那么就能发挥很大的作用了。比如本来一个选出最大数的max函数只能在两个数或三个数里面选出一个最大的数字,如果我们把数组传递过去,它就能够在一堆数字中选出最大的数了,这大大提高了程序的效率。当函数中的某个参数是数组时,在参数名后加上一对中括号,比如int a[],表示参数a是一个数组。下面我们就来看这样一个在一堆正数里面找一个最大数的程序:(程序7

2013-03-16 12:34:39 629

密码管理器

密码管理器

2014-11-17

数字电子技术基础_(林涛_楚岩_田莉娟_著)_课后习题答案_清华大学出版社.pdf

数字电子技术基础_(林涛_楚岩_田莉娟_著)_课后习题答案_清华大学出版社.pdf

2012-08-30

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

TA关注的人

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