题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1031 题目大意:两个选手,轮流可以从数组的任意一端取值, 每次可以去任意个但仅限在一端, 他们的得分分别是取得所有值的和。现在求这两个选手得分差值的最大值。 解题思路:设dp[i ...
分类:
其他好文 时间:
2017-01-01 21:39:06
阅读次数:
178
1xx: Informational - Request received, continuing process100 - Continue101 - Switching Protocols2xx: Success - The action was successfully received, u ...
分类:
Web程序 时间:
2016-12-27 07:53:13
阅读次数:
171
#include #include #include #include #include GLfloat light_position1[]={0,28,-20,1.0}; GLfloat model_ambient[]={0.05f,0.05f,0.05f,1.0f}; GLfloat mat_s... ...
分类:
其他好文 时间:
2016-12-22 11:01:40
阅读次数:
269
这个问题我在刚开始写“HelloWorld”时就遇到,以为是API版本太高,下载了常用的API 19、17……一系列的,后来还是有问题。就上网查了很多,遇到几篇不错的文章,记录下来,方便以后查看。 No resource found that matches the given name 'Them ...
分类:
移动开发 时间:
2016-12-20 23:37:12
阅读次数:
256
题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1030 题目大意:有一个很长的洞穴, 可以看做是1-n的格子。你的起始位置在1的地方, 每个格子中都有价值为v[i]的宝藏。 有一个6面的骰子,数字为从1-6, 每次摇一次骰子, ...
分类:
其他好文 时间:
2016-12-10 19:46:04
阅读次数:
157
RA概述:remote access:广域网的远程连接,按L1分类:1:通过电路交换网络实现的专线:(circuit switching)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~``1.1:通过真实的专用物理链路,实现... ...
分类:
数据库 时间:
2016-12-10 13:41:28
阅读次数:
251
首先制定各个变量名称 入闸传感器:sensor_in; 出闸传感器:sensor_out; 起落杆上升:gan.raise(); 起落杆下降:gan.down(); 信号灯:light(1为绿,0为红); 通行状态:A0为禁止通行,A1为允许通行; 竖着写(在状态中判断事件)C代码片段 ...
分类:
其他好文 时间:
2016-12-05 22:59:30
阅读次数:
238
http://www.jianshu.com/p/6ad7864e005e 先来看这样一个错误: No resource found that matches the given name '@style/Theme.AppCompat.Light' 对于这个错误,相信大部分Android开发者都遇 ...
分类:
移动开发 时间:
2016-12-02 11:39:57
阅读次数:
263
If the world seems cold to you, kindle fires to warm it. 若世界以寒相待,请点燃火堆以温暖相报。 Kindle fires to warm the space around you, to light the space around you. ...
分类:
其他好文 时间:
2016-11-29 22:52:57
阅读次数:
239