自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Ubuntu 下 vim 搭建python 环境 配置

1. 安装完整的vim# apt-get install vim-gnome2. 安装ctags,ctags用于支持taglist,必需!# apt-get install ctags3. 安装taglist#apt-get install vim-scripts#apt-get install vim-addon-manager# vim-addons install

2017-04-05 17:05:17 3205

转载 强制显示U盘隐藏文件

在确认U盘中病毒已经清除的情况下,不管是WIN7还是XP,均可以通过运行CMD调出命令提示符窗口之后,运行attrib -h -s x:\*.* /S /D命令,恢复U盘中所有文件和文件的显示。(用U盘的实际盘符来代替命令行中的X。)命令行中,-h -s表示去除文件和文件夹的隐藏和系统属性,而/S参数则代表处理当前文件夹及其所有子文件夹中的匹配文件,/D参数表示也处理文件夹。

2017-04-05 16:35:30 1433

原创 sdn配置教程 ——从零开始搞sdn

sdn配置教程——从零开始搞sdn(注:本文只介绍在计算机中安装ubuntu虚拟机及环境配置,不涉及安装双系统。有兴趣安装双系统的同学可以自行研究,环境配置方面基本相同,只在初始安装系统方面有些许不同。)sdn需要wireshark、mininet、floodlight等软件。但是在运行这些软件之前,你首先要有一个ubuntu的操作系统。本文采用ubuntu 16.04 TCL系统

2016-11-15 17:58:21 12151 1

原创 Linux更新Python版本及修改python默认版本的方法

本人在学习sdn过程中,安装的python版本较低。很多语句不支持,为了更新python版本和修改默认版本,特写本文。有需要的朋友可以参考下。 1、从官网下载python安装包(这个版本可以是任意版本3.3 2.7 2.6等等,本文以2.7为例)wget http://python.org/ftp/python/2.7/Python-2.7.tar.bz2  2、解压并安装依次

2016-11-15 17:55:51 6865

原创 HDU 1421 搬寝室

搬寝室Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,

2015-07-23 15:57:33 350

原创 HDU 2845 Beans

BeansTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionBean-eating is an interesting game, everyone owns an M*N matrix, which is filled with differ

2015-07-22 18:58:02 331

原创 HDU 1300 Pearls

PearlsTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a l

2015-07-22 18:44:38 309

原创 HDU 2571 命运

命运Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription穿过幽谷意味着离大魔王lemon已经无限接近了! 可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷

2015-07-22 18:33:56 450

原创 HDU 2050 折线分割平面

折线分割平面Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所

2015-07-20 16:52:51 488

原创 HDU 2604 Queuing

QueuingTime Limit:5000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit StatusDescriptionQueues and Priority Queues are data structures which are known to most co

2015-07-20 16:31:36 385

原创 HDU 1575 Tr A

Tr ATime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。  Input数据的第一行是一个T,表示有T组数据。 

2015-07-20 16:24:53 222

原创 HDU 4979 A simple math problem.

A Simple Math ProblemTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionLele now is thinking about a simple function f(x). If x If x >= 10 f(x)

2015-07-20 15:36:30 382

原创 HDU 2018 母牛的故事

母牛的故事Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? Input输入数据由

2015-07-20 15:34:13 318

原创 HDU 2041 超级楼梯

超级楼梯Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法? Input输入数据首先包含一个整数N,表示测试实例的个数,然

2015-07-20 15:17:37 348

原创 HDU 2032 杨辉三角

杨辉三角Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2032Description还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形: 1 1 1 1 2

2015-07-20 15:08:23 274

原创 HDU 2047 阿牛的EOF牛肉串

阿牛的EOF牛肉串Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescription今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共同的集训生活中,大家建立了深厚的友谊,阿牛准备做点

2015-07-20 14:53:09 343

原创 HDU2044 一只小蜜蜂...

一只小蜜蜂...Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2044Description有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。

2015-07-20 14:37:57 639

原创 HDU 2289 Cup

CupTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionThe WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume

2015-07-20 14:27:11 332

原创 HDU 2578 Dating with girls(1)

Dating with girls(1)Time Limit:2000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionEveryone in the HDU knows that the number of boys is larger than the number o

2015-07-20 14:13:48 302

原创 POJ 2785 4 Values whose Sum is 0

4 Values whose Sum is 0Time Limit:15000MS     Memory Limit:228000KB     64bit IO Format:%I64d & %I64uDescriptionThe SUM problem can be formulated as follows: given four lists A, B, C

2015-07-20 14:06:02 282

原创 CodeForces 535C Tavas and Karafs

Tavas and KarafsTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionKarafs is some kind of vegetable in shape of an 1 × h rectangle. Tavaspolis peop

2015-07-20 13:14:24 380

原创 UVA11729 Commando War

Commando WarTime Limit:1000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluDescription“Waiting for orders we held in the wood, word from the front never cameBy evening the sou

2015-07-20 11:15:58 252

原创 POJ3069 Saruman's Army

Saruman's ArmyTime Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64uDescriptionSaruman the White must lead his army along a straight path from Isengard to Hel

2015-07-20 10:58:56 406

原创 HDU3090 Go Home

Go HomeTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionThere comes the holiday, Partychen set foot on the way home. He takes some ECNU coins to h

2015-07-20 10:39:02 543

原创 HDU3420 Bus Fair

Bus FairTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uDescriptionYou are now in Foolish Land. Once moving in Foolish Land you found that there is a strang

2015-07-20 10:26:00 562

原创 HDU3368 Reversi

ReversiTime Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u DescriptionReversi, also called Othello, is a two-sided game. Each of the two sides corresponds

2015-07-19 23:33:46 372

原创 HDU3363 Ice-sugar Gourd

Ice-sugar GourdTime Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64uDescriptionIce-sugar gourd, “bing tang hu lu”, is a popular snack in Beijing of China. It is

2015-07-19 23:31:25 763

原创 HDU2045 不容易系列之(3)―― LELE的RPG难题

不容易系列之(3)―― LELE的RPG难题Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status Description人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐

2015-07-19 23:27:04 720

原创 HDU1539 Shredding Company

Shredding CompanyTime Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u DescriptionYou have just been put in charge of developing a new shredder for the Shred

2015-07-19 23:23:33 1090 1

原创 HDU1201 18岁生日

D - 18岁生日Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u DescriptionGardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你

2015-07-19 23:09:59 517

原创 HDU1106 排序

G - 排序Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘

2015-07-19 23:08:04 361

原创 HDU1040 As Easy As A+B

H - As Easy As A+BTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u DescriptionThese days, I am thinking about a question, how can I get a problem as easy

2015-07-19 23:03:44 377

原创 HDU 1020 Encoding

HDU 1020 Encoding暴力遍历+特殊处理

2015-07-15 23:56:26 276

原创 HDU 1076 An Easy Task

An Easy TaskTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status  DescriptionIgnatius was born in a leap year, so he want to know when he c

2015-07-15 23:49:30 255

原创 HDU1032 The 3n + 1 problem

UVA - 100 The 3n + 1 problem 暴力+ 预处理存储

2015-07-15 22:07:16 313

空空如也

空空如也

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

TA关注的人

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