自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

L.

天将明

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

原创 Codeforces Round #382 (Div. 2)-C. Tennis Championship

原题链接C. Tennis Championshiptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFamous Brazil city Rio de

2016-11-30 14:25:52 248

原创 Codeforces Round #382 (Div. 2)-D. Taxes(歌德巴赫猜想)

原题链接D. Taxestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr. Funt now lives in a countr

2016-11-29 12:36:55 262

原创 Codeforces(738D)-D. Sea Battle

原题链接D. Sea Battletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGalya is playing one-dimensional Sea

2016-11-27 12:56:09 259

原创 Codeforces(738C)-Road to Cinema

原题链接C. Road to Cinematime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya is currently at a car rent

2016-11-26 19:24:05 418

原创 Codeforces Round #381 (Div. 2)-C. Alyona and mex

原题链接C. Alyona and mextime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlyona's mother wants to presen

2016-11-25 23:07:10 307

转载 关于android中postDelayed方法的讲解

From: http://blog.csdn.net/xiabo851205/article/details/7991529这是一种可以创建多线程消息的函数使用方法:1,首先创建一个Handler对象Handler handler=new Handler();2,然后创建一个Runnable对象Runnable runnable=new Runnable

2016-11-24 15:15:06 494

原创 Codeforces Round #379 (Div. 2)-D. Anton and Chess

原题链接D. Anton and Chesstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnton likes to play chess. Als

2016-11-21 20:31:20 259

原创 Codeforces Round #379 (Div. 2)-C. Anton and Making Potions

原题链接C. Anton and Making Potionstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnton is playing a ve

2016-11-21 19:39:19 259

转载 Android 之采用execSQL和rawQuery方法完成数据的添删改查操作

使用 SQLiteDatabase 操作 SQLite 数据库[java] view plaincopy/* Android提供了一个名为SQLiteDatabase的类,该类封装了一些操作数据库的API,使用该类可以完成对数据进行添加(Create)、查询(Retrieve)、更新(Update)和删除(Delete)操作(这些操作简称

2016-11-16 20:15:07 507

原创 Looksery Cup 2015-G. Happy Line

原题链接G. Happy Linetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDo you like summer? Residents of Ber

2016-11-10 21:19:31 222

原创 Looksery Cup 2015-H. Degenerate Matrix(浮点数二分)

原题链接H. Degenerate Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe determinant of a matrix 2

2016-11-10 20:08:02 593

原创 Codeforces Beta Round #15-C. Industrial Nim

原题链接C. Industrial Nimtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputThere are n stone quar

2016-11-10 11:07:53 454

原创 hdoj5965-扫雷

原题链接异或密码Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 496    Accepted Submission(s): 171Problem Description晨晨在纸上写了一个长度为N

2016-11-09 22:51:18 278

原创 hdoj5968-异或密码

原题链接异或密码Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 493    Accepted Submission(s): 170Problem Description晨晨在纸上写了一个长度为N

2016-11-09 21:05:27 288

原创 hdoj5961-传递

原题链接传递                                                                 Time Limit: 12000/6000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 613    Accep

2016-11-09 20:05:45 150

原创 hdoj-5969-最大的位或

原题链接最大的位或Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 412    Accepted Submission(s): 205Problem DescriptionB君和G君聊天的时候想到

2016-11-09 15:40:24 368

原创 51nod-1460 连接小岛

原题链接1460 连接小岛题目来源: CodeForces基准时间限制:1.5 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注有n个小岛,每一个小岛是直线型的,他们不相互相交,第i个小岛所占的区间是[li, ri],而且, ri li+1  对于所有的 1 ≤ i ≤ n-1。

2016-11-08 19:56:55 453 1

原创 51nod-1453 抽彩球

原题链接1453 抽彩球题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注一个袋子中有n个彩球,他们用k种不同的颜色染色。颜色被从1到k编号。同一种颜色的球看成是一样的。现在从袋中一个一个的拿出球来,直到拿完所有的球。对于所有颜色为i

2016-11-08 14:38:01 241

原创 51nod-1406 与查询

原题链接1406 与查询题目来源: CodeForces基准时间限制:2 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注有n个整数。输出他之中和x相与之后结果为x的有多少个。x从0到1,000,000Input第一行输入一个整数n。(1<=n<=1,00

2016-11-08 10:38:02 247

原创 51nod-1403 有趣的堆栈

原题链接1403 有趣的堆栈基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注大家都熟悉堆栈操作。一个堆栈一般有两种操作,push和pop。假设所有操作都是合法的并且最终堆栈为空。我们可以有很多方法记录堆栈的操作,(1) 对每个pop操作,我们记录它之前一共有多少个push操

2016-11-07 18:42:54 226

原创 51nod-1437 迈克步(单调栈)

原题链接1437 迈克步题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注有n只熊。他们站成一排队伍,从左到右依次1到n编号。第i只熊的高度是ai。一组熊指的队伍中连续的一个子段。组的大小就是熊的数目。而组的力量就是这一组熊中最

2016-11-07 12:40:54 583

原创 51nod-1241 特殊的排序

原题链接1241 特殊的排序题目来源: 摩根斯坦利的比赛题基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注一个数组的元素为1至N的整数,现在要对这个数组进行排序,在排序时只能将元素放在数组的头部或尾部,问至少需要移动多少个数字,才能完成整个排序过程?例如:2

2016-11-05 13:28:28 226

原创 51nod-1364 最大字典序排列(线段树)

原题链接1364 最大字典序排列基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注给出一个1至N的排列,允许你做不超过K次操作,每次操作可以将相邻的两个数交换,问能够得到的字典序最大的排列是什么?例如:N = 5, {1 2 3 4 5},k = 6,在6次交换后,能够得到的

2016-11-05 10:56:53 419

原创 51nod-1274 最长递增路径

原题链接1274 最长递增路径题目来源: Codility基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注一个无向图,可能有自环,有重边,每条边有一个边权。你可以从任何点出发,任何点结束,可以经过同一个点任意次。但是不能经过同一条边2次,并且你走过的路必须满足所有边的权

2016-11-04 22:18:28 500

原创 51nod-1394 差和问题(树状数组)

原题链接1394 差和问题基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注有一个多重集合S(即里面元素可以有重复),初始状态下有n个元素,对他进行如下操作:1、向S里面添加一个值为v的元素。输入格式为1 v2、向S里面删除一个值为v的元素。输入格式为2 v

2016-11-04 20:34:08 203

原创 51nod-1215 数组的宽度(单调栈)

原题链接1215 数组的宽度题目来源: Javaman基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注N个整数组成的数组,定义子数组a[i]..a[j]的宽度为:max(a[i]..a[j]) - min(a[i]..a[j]),求所有子数组的宽度和。

2016-11-04 10:57:13 317

原创 51nod-1020 逆序排列

原题链接1020 逆序排列基准时间限制:2 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,

2016-11-03 16:10:03 609

原创 51nod-1451 合法三角形

原题链接1451 合法三角形题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注有n个不同的点,问有多少组三元组能构成面积非0的三角形。Input单组测试数据。第一行一个整数n (1 ≤ n ≤ 2000),

2016-11-03 14:32:02 313

原创 51NOD-1674 区间的价值 V2

原题链接1674 区间的价值 V2基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注lyk拥有一个区间。它规定一个区间的价值为这个区间中所有数and起来的值与这个区间所有数or起来的值的乘积。例如3个数2,3,6。它们and起来的值为2,or起来的值为7,这个区间对答案的

2016-11-01 21:16:12 740

原创 Codeforces Round #378 (Div. 2)-D. Kostya the Sculptor(multiset)

原题链接D. Kostya the Sculptortime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKostya is a genial sculpto

2016-11-01 11:48:48 213

原创 Codeforces Round #378 (Div. 2)-C. Epidemic in Monstropolis

原题链接C. Epidemic in Monstropolistime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere was an epidemic

2016-11-01 10:53:40 241

空空如也

空空如也

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

TA关注的人

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