Boring CountingTime Limit: 3000ms Memory limit:
65536K有疑问?点这里^_^题目描述 In this problem you are given a number sequence P
consisting of N integer and Pi....
分类:
其他好文 时间:
2014-05-08 19:17:31
阅读次数:
473
从意图返回结果
startActivity()方法调用另一个活动,但并没有返回结果给当前活动。此时如想从一个活动中回传数据,就要使用startActivityForResult()方法。
点此获取完整代码~
...
分类:
移动开发 时间:
2014-05-07 23:21:36
阅读次数:
430
《算法导论》里的COUNTING_SORT,用C++实现有问题:
#include
#include
using namespace std;
void COUNTING_SORT(vectorint>&A, vectorint>&B, const int& k)
{
int* C = new int[k + 1]();
for (unsigned j = 0; j A.size();...
分类:
其他好文 时间:
2014-05-07 02:59:30
阅读次数:
251
题目链接:http://acm.upc.edu.cn/problem.php?id=2224题意:给出n个数pi,和m个查询,每个查询给出l,r,a,b,让你求在区间l~r之间的pi的个数(A#include
#include #include #include #define lson rt>1;...
分类:
其他好文 时间:
2014-05-06 08:53:03
阅读次数:
248
Problem DescriptionGiven n integers.You have two
operations:U A B: replace the Ath number by B. (index counting from 0)Q A B:
output the length of the...
分类:
其他好文 时间:
2014-05-06 01:20:33
阅读次数:
332
1004. Counting Leaves (30)
分类:
其他好文 时间:
2014-05-06 00:25:24
阅读次数:
340
Java领域有很多著名的人物,他们为Java社区编写框架、产品、工具或撰写书籍改变了Java编程的方式。本文是《最受欢迎的8位Java牛人》的2.0版本。
PS:排名不分先后。本文的信息整理自网络博客,信息的真实性未经过严格筛选和确认。
1、James Duncan Davidson —— Tomcat 、 Ant
他曾是一名软件工程师,现在是一名摄影师。...
分类:
编程语言 时间:
2014-05-05 13:08:29
阅读次数:
487
首先把工具都下载好:1. Qt for
Android:http://qt-project.org/downloads2. Android
NDKhttp://developer.android.com/tools/sdk/ndk/index.html64位可以下载第二个3.Apache Ant
1...
分类:
移动开发 时间:
2014-05-02 16:45:43
阅读次数:
573
问题描述:
在Eclipse中运行ant批量打包工具出错,日志信息如下:
D:\Android\android-sdk-windows\tools\ant\build.xml:601: The following error occurred
while executing this line:
D:\Android\android-sdk-windows\tools\ant\bui...
分类:
移动开发 时间:
2014-04-30 22:48:39
阅读次数:
359
前文描述的是在SDK下用Ant开发, 本文在此基础上尝试用Maven开发。这里需要用到maven-android-plugin。本文主要参考官方文档: https://code.google.com/p/maven-android-plugin/wiki/GettingStarted首先从这里下载例子工程:https://code.google.com/p/maven-android-plugin...
分类:
移动开发 时间:
2014-04-30 22:31:40
阅读次数:
412