stack的应用 1 #include 2 #include 3 #include 4 using namespace std; 5 int goal[1005]; 6 int d[1005]; 7 stacks; 8 int main() 9 {10 freopen("input.txt"...
分类:
其他好文 时间:
2014-07-23 11:57:56
阅读次数:
220
map的应用 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 freopen("input.txt","r",stdin); 9 mapballoons;10 ...
分类:
其他好文 时间:
2014-07-23 11:57:26
阅读次数:
205
set的应用 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 freopen("input.txt","r",stdin); 9 string s,s1;10 ...
分类:
其他好文 时间:
2014-07-23 11:56:56
阅读次数:
226
1201 最小数和最大数题目描述Description求n个数的和输入描述Input Description第一行一个整数n接下来一行n个整数输出描述Output Description所有数的和样例输入Sample Input41 2 3 4样例输出Sample Output10数据范围及提示Da...
分类:
其他好文 时间:
2014-07-23 11:42:26
阅读次数:
217
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What consti...
分类:
其他好文 时间:
2014-07-22 23:41:47
阅读次数:
380
题目:DescriptionThere are only one case in each input file, the first line is a integerN (N ≤ 1,000,00)denoted the total operations executed by Mary.The...
分类:
其他好文 时间:
2014-07-22 23:37:37
阅读次数:
434
逃生反向拓扑+优先队列+逆序输出注意一个样例input:13 13 1answer:3 1 2而不是2 3 1#include#include#include#include#include#include#define MAXN 30005using namespace std;vector g....
分类:
其他好文 时间:
2014-07-22 23:36:57
阅读次数:
354
Hadoop学习笔记(2) ——解读Hello World 上一章中,我们把hadoop下载、安装、运行起来,最后还执行了一个Hello world程序,看到了结果。现在我们就来解读一下这个Hello Word。 OK,我们先来看一下当时在命令行里输入的内容: $mkdir input $cd i....
分类:
其他好文 时间:
2014-07-22 23:27:57
阅读次数:
401
Problem Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N...
分类:
其他好文 时间:
2014-07-22 23:23:07
阅读次数:
413
使用Adb shell command直接送key event給Androidadb shell input keyevent 7 # for key '0'adb shell input keyevent 8 # for key '1'adb shell input keyevent ...
分类:
移动开发 时间:
2014-07-22 23:10:32
阅读次数:
313