自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

liang654213的博客

说不定我一生涓滴意念,侥幸汇成河。

  • 博客(46)
  • 收藏
  • 关注

原创 scrapy爬虫框架

scrapy架构图引擎(Engine)引擎负责控制数据流在系统中所有组件中流动,并在相应动作发生时触发事件.调度器(Scheduler)调度器从引擎接受request并将他们入队,以便之后引擎请求他们时提供给引擎.下载器下载器负责获取页面数据并提供给引擎,而后提供给spider.spiderSpider是Scrapy用户编写用于分析res...

2019-11-07 00:13:01 128

原创 MySQL学习笔记

配置文件:sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf登入命令:mysql -uroot -p创建(删除)数据库:create(drop) database ***转换到数据库:use databasename;创建表: create table tablename( r1name datatype (若要不为空写 not n...

2017-09-27 14:43:40 236

原创 2017第八届山东省赛总结

这次的省赛打的可谓是惊险,幸亏靠着手速才以银牌区最后一名的成绩水到银牌。先从热身赛开始说吧,B C 两题都很水,我基本是没参与队友便把这俩给切了,A题我看了之后想了一会认为是一个记忆化搜索,等队友把B C 切完之后我就开始搞A,很快就敲完了,测了几组数据之后没有问题,然后自信满满的交了一发,然后给我返回了一个RE,查了下代码之后以为可能是输入有非法数据导致数组访问越界,加了个特判之后又交了一发,结

2017-05-09 17:45:50 452

原创 PAT L3-002. 堆栈

L3-002. 堆栈时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越大家都知道“堆栈”是一种“先进后出”的线性结构,基本操作有“入栈”(将新元素插入栈顶)和“出栈”(将栈顶元素的值返回并从堆栈中将其删

2017-03-14 21:48:17 1049

原创 cf 777c Alyona and Spreadsheet

C. Alyona and Spreadsheettime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuring the lesson small girl Alyon

2017-02-24 20:17:15 581

原创 UVALive-6955

#include#include#include#include#include#includeusing namespace std;typedef unsigned long long int ll;pairA[112345];bool is(int x,int y,int z){ ll x1=(A[x].first-A[y].first); ll x2

2017-02-23 17:40:30 319

原创 UVALive - 6952

题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4964题意:给你n个数字,可以将某几个连续的数字的和四舍五入,然后问你最多把这些数字分成d个字段之后 他们的和能够最小。思路: 一个dp题,dp【i】【j】表

2017-02-22 14:26:41 278

原创 UVALive - 6590

题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4601题意:给你一些只有2个长度的字符串,让你尽量打印出一个大的m*m的矩阵,矩阵中横竖都不包括给出的字符串,最大20。思路:对建立 的图求出他的补图,如果补

2017-02-21 21:42:19 419

原创 UVA 6585

题目链接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4596根本就没玩过这游戏 加上英语渣渣,光是理解题意就理解了半天,题意理解了就很好做了,简单的枚举每一个点然后对每一个为白棋的点进行dfs,计算从每个点开始最多能够吃掉

2017-02-20 19:25:28 301

原创 POJ 2948 Martian Mining

Martian MiningTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 2612 Accepted: 1625DescriptionThe NASA Space Center, Houston, is less than 200 miles from Sa

2017-02-15 20:45:57 302

原创 POJ 2635 The Embarrassed Cryptographer

The Embarrassed CryptographerTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14158 Accepted: 3872DescriptionThe young and very promising cryptographer Odd

2016-08-24 21:28:03 206

原创 POJ 1265 Area

AreaTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6317 Accepted: 2770DescriptionBeing well known for its highly innovative products, Merck would definit

2016-08-24 21:14:39 214

原创 POJ 1159 Palindrome

PalindromeTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 60328 Accepted: 21010DescriptionA palindrome(回文) is a symmetrical(匀称的) string, that is, a stri

2016-08-16 21:49:32 194

原创 POJ 1260 Pearls

PearlsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8699 Accepted: 4351DescriptionIn Pearlania everybody is fond of pearls. One company, called The Roya

2016-08-16 21:45:45 208

原创 POJ 1836 Alignment

AlignmentTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 15867 Accepted: 5177DescriptionIn the army, a platoon(排) is composed(构成) by n soldiers. During

2016-08-16 21:36:23 169

原创 POJ 1276 Cash Machine

Cash MachineTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 32571 Accepted: 11789DescriptionA Bank plans to install(安装) a machine for cash withdrawal(撤退).

2016-08-16 21:29:31 213

原创 POJ 1837Balance

BalanceTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 13341 Accepted: 8352DescriptionGigel has a strange "balance" and he wants to poise(平衡) it. Actually

2016-08-16 21:22:40 199

原创 POJ 2251 Dungeon Master

Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 26176 Accepted: 10198DescriptionYou are trapped in a 3D dungeon(地牢) and need to find the qui

2016-08-10 21:35:25 247

原创 POJ 1321 棋盘问题

棋盘问题Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 35179 Accepted: 17342Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对

2016-08-10 21:34:03 154

原创 POJ 2488 A Knight's Journey

A Knight's JourneyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 40609 Accepted: 13800DescriptionBackgroundThe knight(骑士) is getting bored of seeing

2016-08-09 21:41:23 165

原创 POJ 2513 Colored Sticks

Colored SticksTime Limit: 5000MS Memory Limit: 128000KTotal Submissions: 35039 Accepted: 9155DescriptionYou are given a bunch(群) of wooden sticks. Each endpoint(端

2016-08-09 21:38:11 169

原创 POJ 1442 Black Box

Black BoxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10302 Accepted: 4237DescriptionOur Black Box represents a primitive(原始的) database. It can save

2016-08-09 21:26:20 189

原创 POJ 3349

Time Limit: 4000MS Memory Limit: 65536KTotal Submissions: 38027 Accepted: 9963DescriptionYou may have heard that no two snowflakes(雪花) are alike. Your task is to write a pr

2016-08-08 21:08:09 273

原创 POJ 3274 Gold Balanced Lineup

Gold Balanced LineupTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14378 Accepted: 4165DescriptionFarmer John's N cows (1 ≤ N ≤ 100,000) share many sim

2016-08-08 20:57:45 291

转载 POJ 2151 Check the difficulty of problems

Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 6653 Accepted: 2889DescriptionOrganizing a programming contest(竞赛) is not an easy job. To avoid making the problem

2016-08-08 20:39:34 158

原创 POJ 1840

EqsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 15281 Accepted: 7499DescriptionConsider equations(方程式) having the following form:a1x13+ a2x23+ a3x33+

2016-08-08 20:30:14 234

原创 POJ 2002 Squares

SquaresTime Limit: 3500MS Memory Limit: 65536KTotal Submissions: 18718 Accepted: 7209DescriptionA square is a 4-sided polygon(多边形) whose sides have equal length and

2016-08-08 20:15:28 213

原创 POJ 2503 Babelfish

BabelfishTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 40265 Accepted: 17159DescriptionYou have just moved from Waterloo to a big city. The people here

2016-08-08 20:06:44 278

原创 POJ 3020 Antenna Placement

Antenna PlacementTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8613 Accepted: 4266DescriptionThe Global Aerial Research Centre has been allotted the tas

2016-08-03 21:56:29 283

原创 POJ 3041 Asteroids

AsteroidsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20181 Accepted: 10952DescriptionBessie wants to navigate her spaceship through a dangerous astero

2016-08-03 21:52:32 172

原创 POJ 1094 Sorting It All Out

Sorting It All OutTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 32802 Accepted: 11395DescriptionAn ascending sorted sequence of distinct values is one i

2016-08-03 21:48:53 194

转载 POJ 3267 The Cow Lexicon

The Cow LexiconTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9766 Accepted: 4682DescriptionFew know that the cows have their own dictionary with W (1

2016-08-03 21:42:42 196

原创 POJ 3687 Labeling Balls

Labeling BallsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13433 Accepted: 3879DescriptionWindy has N balls of distinct weights from 1 unit to N un

2016-08-03 21:36:19 231

原创 POJ 1258 Agri-Net

Agri-NetTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 51702 Accepted: 21565DescriptionFarmer John has been elected mayor of his town! One of his campaig

2016-08-03 21:29:39 194

原创 POJ 2485 Highways

HighwaysTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 28412 Accepted: 12948DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Fl

2016-08-03 21:21:14 194

原创 POJ 1789 Truck History

Truck HistoryTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 24786 Accepted: 9666DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types.

2016-08-03 21:14:55 200

原创 POJ 2240 Arbitrage

ArbitrageTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20575 Accepted: 8768DescriptionArbitrage is the use of discrepancies in currency exchange rates t

2016-08-03 21:06:40 223

原创 POJ 1125 Stockbroker Grapevine

Stockbroker GrapevineTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 33884 Accepted: 18726DescriptionStockbrokers are known to overreact to rumours. You h

2016-08-03 20:57:49 197

原创 POJ 3026 Borg Maze

Borg MazeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12536 Accepted: 4107DescriptionThe Borg is an immensely powerful race of enhanced humanoids from

2016-07-29 14:59:17 236

原创 POJ 2442 优先队列

SequenceTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 8859 Accepted: 2938DescriptionGiven m sequences, each contains n non-negative integer. Now we ma

2016-07-28 12:32:36 234

空空如也

空空如也

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

TA关注的人

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