自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (10)
  • 收藏
  • 关注

原创 Puzzles

A. Puzzlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe end of the school year is near and Ms. Manana

2016-12-06 16:22:48 429

原创 Presents

A. Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya very much likes gifts. Recently he

2016-12-06 15:22:09 405

原创 sql server使用教程(图文)

首先打开SQL Server Management Studio打开后选择服务器名称中的数据库,选择第一个点击链接选择数据库,右键新建数据库点击上方的新建查询就可以使用sql server语句进行数据库表的创建和操作。

2016-12-05 08:38:07 62569 1

原创 win10系统更新后开始菜单栏和工具栏打不开

当你试过除重装系统之外的所有方法之后,开始菜单栏还是打不开,你暂时又不想重装系统。这时你就慢慢等待下一次更新或者先用一段时间,这时怎么使用开始菜单栏中的应用呢?你可以打开C:\ProgramData\Microsoft\Windows\Start Menu\Programs这个文件夹你就可以看到开始菜单栏中的应用程序了。将这个文件夹创建一个快捷方

2016-11-30 11:22:12 5949

原创 Beautiful Year

A. Beautiful Yeartime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt seems like the year of 2013 came only

2016-11-28 09:28:15 473

转载 vs环境下OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9的配置

转自:http://blog.csdn.net/poem_qianmo/article/details/198093371.下载和安装OpenCV SDKVS2010不用说,肯定都安装了吧。来说说当前最新的OpenCV版本2.4.8(2014年2月24日),2.4.9 (2014年4月)的下载和安装。与其说是安装,不如叫解压更加合适,因为我们下载的exe安装文件

2016-11-28 09:20:43 492

原创 Presents

A. Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya very much likes gifts. Recently he

2016-11-24 22:10:03 336

转载 win10下vs2015配置Opencv3.1.0过程详解(转)

转自:http://www.cnblogs.com/zangdalei/p/5339316.html下载安装Opencv3.1.0下载Opencv3.1.0,进入官网,点击opencv for windows即可下载。 点击运行下载好的文件。实际上,opencv的安装程序就是解压缩文件,个人因为只有C盘,所以就直接在C盘建了一个文件夹Opencv3.1.

2016-11-21 08:45:16 343

原创 Queue at the School

During the break the schoolchildren, boys and girls, formed a queue of n people in the canteen. Initially the children stood in the order they entered the canteen. However, after a while the boys st

2016-11-16 21:38:26 485

原创 dev-c++怎么运行多个文件

当你写了都个文件想让他们在一起编译运行时,却发现编译器不买账;这是你需要建一个项目你可以在这里选择建立一个空白的项目,在项目里面的多个文件可以一同编译运行。

2016-11-10 19:12:20 16801

原创 平面上的邮局

平面上的邮局在一个平面上有n(1在这个问题中,距离定义为曼哈顿距离,即点i和点j的距离等于|xi-xj|+|yi-yj|输入第一行为n,表示村庄的数量接下来n行每行有两个整数,表示一个村庄的坐标输出一个数字,表示建立的邮局到各个村庄的和提示:村庄和邮局的坐标都一定为整数对于超过int的数字,请用long long,输入和读取用%lldinpu

2016-11-05 19:30:30 947

原创 Lucky Division

A. Lucky Divisiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves lucky numbers. Everybody know

2016-11-05 08:21:15 304

原创 Word Capitalization

A. Word Capitalizationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCapitalization is writing a word wit

2016-11-05 07:58:32 425

原创 Twins

A. Twinstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputImagine that you have a twin brother or sister. Ha

2016-11-05 07:44:49 387

原创 HQ9+

A. HQ9+time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHQ9+ is a joke programming language which has only

2016-11-04 14:51:09 793

原创 Stones on the Table

A. Stones on the Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n stones on the table in a

2016-11-04 14:07:22 387

原创 cAPS lOCK

A. cAPS lOCKtime limit per test0.5 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputwHAT DO WE NEED cAPS LOCK FOR?Caps lock i

2016-11-04 13:30:27 568

原创 Tram

A. Tramtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLinear Kingdom has exactly one tram line. It has n 

2016-11-04 08:13:23 280

原创 Helpful Maths

A. Helpful Mathstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia the beginner mathematician is a thir

2016-11-03 22:14:43 266

原创 Petya and Strings

A. Petya and Stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya loves presents. His mum b

2016-11-03 22:05:19 407

原创 Football

A. Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves football very much. One day, as he

2016-11-03 14:40:57 255

原创 Taxi

B. Taxitime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the lessons n groups of schoolchildren went o

2016-11-03 14:33:09 362

原创 Bit++

A. Bit++time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe classic programming language of Bitland is Bit+

2016-11-03 14:25:44 193

原创 Team

A. Teamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day three best friends Petya, Vasya and Tonya d

2016-11-03 14:21:05 222

原创 Domino piling

A. Domino pilingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a rectangular board of M × N

2016-11-02 13:51:59 370

原创 编程珠玑

你有一条项链,它由 N 个随机排列的红、白和蓝色的珠子组成(3 1 2 1 2 r b b r b r r b r b b b

2016-11-02 13:35:46 309

原创 String Task

A. String Tasktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya started to attend programming lessons.

2016-11-02 11:14:19 325

原创 Next Round

A. Next Roundtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output"Contestant who earns a score equal to or gre

2016-11-02 11:08:22 1509

原创 Way Too Long Words

A. Way Too Long Wordstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSometimes some words like "localizati

2016-11-02 10:47:17 445

原创 Watermelon

A. Watermelontime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputOne hot summer day Pete and his friend Billy de

2016-11-02 10:03:20 283

原创 Theatre Square

Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square grani

2016-11-02 09:53:19 244

2001年编译原理期末考试试题

2001年编译原理期末考试试卷

2017-06-15

编译原理期末复习题

编译原理期末考试复习题

2017-06-15

编译原理练习题

编译原理期末考试习题

2017-06-15

1120142052+王健-实验五-地址解析协议 (ARP)

使用 Packet Tracer 的 arp 命令 使用 Packet Tracer 检查 ARP 交换

2017-06-14

1120142052+王健-实验四-网络设备配置综合

用Packet Tracer构建网络,设计IP编址方案,然后根据IP编址方案配置路由器接口地址。当配置完成时,验证网络可以正常运作。

2017-06-14

1120142052-王健-实验三-动态路由

实验要求:用Packet Tracer构建如下网络,并配置RIP动态路由,使得主机之间能够互相ping通。

2017-06-14

tomcat-7.0.57

官方下载,tomcat-7.0.57,64位,推荐下载

2017-06-06

mysql-5.5.41 64位

windows64位版mysql5.5.41

2017-06-06

Programming Pearls

你有一条项链,它由 N 个随机排列的红、白和蓝色的珠子组成(3<=N<=350)。下面的例子展示了两条 N=29 时的项链: 1 2 1 2 r b b r b r r b r b b b r r b r r r w r b r w w b b r r b b b b b b r b r r b r b r r r b r r r r r r b r b r r r w Figure A Figure B r red bead b blue bead w white bead 项链上的第一个和第二个珠子已经在图中标出了。 图 A 也可以用一个由 b 和 r 组成的字符串直接表示,b 代表蓝色而 r 代表红色,如下所示:brbrrrbbbrrrrrbrrbbrbbbbrrrrb。 假设你想从项链的某处将它截断拉直;接着从一端向另外一端数收集同颜色的珠子,直到碰到一个不同颜色的珠子为止;然后再从另外一端做同样的操作。(一端收集的珠子颜色可以不同于另一端的。) 请想办法找到一个截断项链的位置,能够让我们尽量多地收集到同色的珠子。 例子 如图 A 中的项链,从第 9 和第 10 个或者第 24 和 第 25 个珠子中间截断,则我们可以收集到 8 个珠子。 图 B 中的项链有白色的珠子,当遇到白色的珠子时,它既可以作为蓝色的珠子看待,也可以作为红色的珠子看待,由收集珠子时的需求决定。包含有白色珠子的项链则会由 r、b 和 w 字符组成的字符串来表示。 请编写一个程序计算从某条项链中能够收集到多少个珠子。 输入格式 第一行: N,项链上珠子的个数 第二行:一个字符串,长度为 N,由 r、b 和 w字符组成 输入样例 29 wwwbbrwrbrbrrbrbrwrwwrbwrwrrb 输出格式 输出一行字符,它应该包含了计算出的结果。 输出样例 11

2016-11-02

Theatre Square

Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the size a × a. What is the least number of flagstones needed to pave the Square? It's allowed to cover the surface larger than the Theatre Square, but the Square has to be covered. It's not allowed to break the flagstones. The sides of flagstones should be parallel to the sides of the Square. Input The input contains three positive integer numbers in the first line: n,  m and a (1 ≤  n, m, a ≤ 109). Output Write the needed number of flagstones. Examples input 6 6 4 output 4

2016-11-02

空空如也

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

TA关注的人

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