传送门:BZOJ1024首先注意到以下事实:每一刀必然割在kn处,其中k∈N+\frac {k} {n}处,其中k\in \mathbb N^+然后就可以深搜了。代码上的小细节见下。#include
#include
#include
#include
#include
#include <iostre...
分类:
其他 时间:
2015-08-14 17:07:05
收藏:
0 评论:
0 赞:
0 阅读:
178
递归反转一个栈,要求空间复杂度为1,不许重新申请一个同样的栈...
分类:
其他 时间:
2015-08-14 17:06:55
收藏:
0 评论:
0 赞:
0 阅读:
120
首先选中
A
列,按
F5
键,再按“定位条件?”按钮,选择空值,这样就把所
有空列选中了,但是光标停留的位置是
A3
格上;
然后直接输入“
=A2
”,再按
Ctrl +
回车
首先全选中所有列,按F5键,再按“定位条件?”按钮,选择空值,这样就把所有空列选中了, 然后直接输入“你想要替换的值”,再按Ctrl + 回车...
分类:
其他 时间:
2015-08-14 17:06:45
收藏:
0 评论:
0 赞:
0 阅读:
182
Description
If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d, a + 3d, a +
4d, ..., contains infinitely man...
分类:
其他 时间:
2015-08-14 17:06:25
收藏:
0 评论:
0 赞:
0 阅读:
252
参考资料:http://blog.csdn.net/niushuai666/article/details/7002823
留个板子
/* ********************************************** File Name: ac_automata.cpp Auther: zhengdongjian@tju.edu.cn Created Time: 2015年08...
分类:
其他 时间:
2015-08-14 17:06:15
收藏:
0 评论:
0 赞:
0 阅读:
183
Catching the Thief
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 653 Accepted Submission(s): 359
Problem Description
In the Qi...
分类:
其他 时间:
2015-08-14 17:06:05
收藏:
0 评论:
0 赞:
0 阅读:
199
CSU 1204 Rectangles (二分)...
分类:
其他 时间:
2015-08-14 17:05:15
收藏:
0 评论:
0 赞:
0 阅读:
218
代码:
#include
#include
#define N 1005
using namespace std;
int a[N];
int T[N];
int pos;
int n;
int cmp(int a,int b)
{
return an)
return;
int l=i<<...
分类:
其他 时间:
2015-08-14 17:05:05
收藏:
0 评论:
0 赞:
0 阅读:
116
BLE 天线也 Layout 好多次了,但是每次都是按照天线的 Datasheet 给的参考设计 Layout,对于天线了解的也不多,毕竟也没有专业学过天线。
一般常用的 BLE 天线有两种:
1. 板载天线,就是常用的倒 F 天线,但是对板子的空间要求比较高,需要较大的面积来 Layout,但是好处就是便宜
2. 陶瓷贴片天线,基本就是好按照 Datasheet 来 Layout,最后需要...
分类:
其他 时间:
2015-08-14 17:04:25
收藏:
0 评论:
0 赞:
0 阅读:
345
标准库类型 string
string 表示可变长的字符序列。是C++标准库类型的一部分,拥有许多优秀的性能。
定义 string 对象时如未人为初始化编译器会默认初始化为空字符串。
string 对象的初始化有很多种,大体分为两类:拷贝初始化和直接初始化。所有用等号(=)的初始化都为拷贝初始化,相反不是等号则为直接初始化。当初始值只有一个时,...
分类:
其他 时间:
2015-08-14 17:04:15
收藏:
0 评论:
0 赞:
0 阅读:
206
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他 时间:
2015-08-14 17:04:05
收藏:
0 评论:
0 赞:
0 阅读:
192
sed -i 's/[ ][ ]*/ /g' file.txt...
分类:
其他 时间:
2015-08-14 17:03:35
收藏:
0 评论:
0 赞:
0 阅读:
242
Problem Description
In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you ar...
分类:
其他 时间:
2015-08-14 17:03:25
收藏:
0 评论:
0 赞:
0 阅读:
136
有关苹果官方用语定位之后描述一个点的所有属性的信息的一切内容。...
分类:
其他 时间:
2015-08-14 17:02:45
收藏:
0 评论:
0 赞:
0 阅读:
95
AsyncTask的使用和原理分析网上有很多文章写得非常清楚,这里大概画了下时序图(不求准确),帮助理解。MyAsyncTask是自定义AsyncTask的子类,AsyncTask_Thread是线程池执行器创建的执行线程,线程以AsyncTask#count命名。
相关文章分享:
Android AsyncTask完全解析,带你从源码的角度彻底理解:http://bl...
分类:
其他 时间:
2015-08-14 17:02:25
收藏:
0 评论:
0 赞:
0 阅读:
125
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=1015
二部图
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
二部图又叫二分图,我们不是求它的二分图最大匹配,也不是完美匹配,也不是多重匹配,而是证明一个图是不是二部图。证明二部图可以用着色来解决,即我们可以用两种颜色去涂一个...
分类:
其他 时间:
2015-08-14 17:02:15
收藏:
0 评论:
0 赞:
0 阅读:
259
这个有点意思,要理解失配数组题意是要计算出需要构造成循环节相连的最小个数利用失配构造函数求出单个循环节,然后计算出需要的加上的珠子个数 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include...
分类:
其他 时间:
2015-08-14 17:00:35
收藏:
0 评论:
0 赞:
0 阅读:
173
键盘弹起遮挡输入输入框(UITextFiled或者UITextView) 对于键盘弹起遮挡输入框的问题以前也想过解决办法比如:监听系统键盘弹出通知、根据每个控件所在位置进行单独调整等。但是始终感觉自己的解决方法不太美好,于是又在网上进行了搜寻以寻求更好的解决方法。注:要是有更好解决方案的朋友欢迎指导...
分类:
其他 时间:
2015-08-14 16:59:35
收藏:
0 评论:
0 赞:
0 阅读:
191
/************************************************************************* * * Using the library: A Simple Test-Query Program * *********************....
分类:
其他 时间:
2015-08-14 16:59:25
收藏:
0 评论:
0 赞:
0 阅读:
143
Sublime Text使用介绍如果说Notepad++是一款不错Code神器,那么Sublime Text应当称得上是神器滴哥。Sublime Text最大的优点就是跨平台,Mac和Windows均可完美使用;其次是强大的插件支持,几乎无所不能。开始使用Sublime Text:Sublime T...
分类:
其他 时间:
2015-08-14 16:59:05
收藏:
0 评论:
0 赞:
0 阅读:
203