两个栈实现一个队列 三种思路你是否都能想到...
分类:
其他好文 时间:
2015-08-14 17:08:59
阅读次数:
96
产生冠军
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 11500 Accepted Submission(s): 5334
Problem Description
有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之...
分类:
其他好文 时间:
2015-08-14 17:08:16
阅读次数:
106
#include
#include
#include
using namespace std;
int main()
{
int a; //编译器分配 4个字节的空间
int b[10]; ////编译器分配 40个字节的空间
int *p;
a = 10;
printf("%d\n\n", &a);
//275223
*((int*)...
分类:
其他好文 时间:
2015-08-14 17:09:16
阅读次数:
98
KVC
kvc(key-value-coding,键值编码)
为属性赋值: value为属性的值 forKey:属性的名称
kvc 为OC语言动态运行时机制的一种体现,任何NSObject类型的对象都支持kvc
kvo(键值观察)(key-value-observer)
:对符合kvc键值编码的变量的观察,主要对变量赋值操作的观察
[_model addObserv...
分类:
其他好文 时间:
2015-08-14 17:09:22
阅读次数:
147
传送门:BZOJ1024首先注意到以下事实:每一刀必然割在kn处,其中k∈N+\frac {k} {n}处,其中k\in \mathbb N^+然后就可以深搜了。代码上的小细节见下。#include
#include
#include
#include
#include
#include <iostre...
分类:
其他好文 时间:
2015-08-14 17:09:13
阅读次数:
104
递归反转一个栈,要求空间复杂度为1,不许重新申请一个同样的栈...
分类:
其他好文 时间:
2015-08-14 17:07:02
阅读次数:
94
首先选中
A
列,按
F5
键,再按“定位条件?”按钮,选择空值,这样就把所
有空列选中了,但是光标停留的位置是
A3
格上;
然后直接输入“
=A2
”,再按
Ctrl +
回车
首先全选中所有列,按F5键,再按“定位条件?”按钮,选择空值,这样就把所有空列选中了, 然后直接输入“你想要替换的值”,再按Ctrl + 回车...
分类:
其他好文 时间:
2015-08-14 17:09:52
阅读次数:
154
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:07:58
阅读次数:
77
参考资料: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:08:30
阅读次数:
177
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:09:09
阅读次数:
119
CSU 1204 Rectangles (二分)...
分类:
其他好文 时间:
2015-08-14 17:06:05
阅读次数:
117
代码:
#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:07:22
阅读次数:
161
BLE 天线也 Layout 好多次了,但是每次都是按照天线的 Datasheet 给的参考设计 Layout,对于天线了解的也不多,毕竟也没有专业学过天线。
一般常用的 BLE 天线有两种:
1. 板载天线,就是常用的倒 F 天线,但是对板子的空间要求比较高,需要较大的面积来 Layout,但是好处就是便宜
2. 陶瓷贴片天线,基本就是好按照 Datasheet 来 Layout,最后需要...
分类:
其他好文 时间:
2015-08-14 17:05:44
阅读次数:
136
标准库类型 string
string 表示可变长的字符序列。是C++标准库类型的一部分,拥有许多优秀的性能。
定义 string 对象时如未人为初始化编译器会默认初始化为空字符串。
string 对象的初始化有很多种,大体分为两类:拷贝初始化和直接初始化。所有用等号(=)的初始化都为拷贝初始化,相反不是等号则为直接初始化。当初始值只有一个时,...
分类:
其他好文 时间:
2015-08-14 17:04:44
阅读次数:
148
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:06:51
阅读次数:
125
sed -i 's/[ ][ ]*/ /g' file.txt...
分类:
其他好文 时间:
2015-08-14 17:04:50
阅读次数:
196
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:40
阅读次数:
128