题意:给定n个木棍依次放下,要求最终判断没被覆盖的木棍是哪些。 思路:快速排斥以及跨立实验可以判断线段相交。 ...
分类:
其他好文 时间:
2016-06-02 11:27:31
阅读次数:
148
Problem Description We are going to distribute apples to n children. Every child has his/her desired number of apple A1,A2,A3,?An , Ai indicates the i ...
分类:
移动开发 时间:
2016-05-25 18:08:35
阅读次数:
312
git 如何查看git项目在哪个路径下 git remote -v //查看当前仓库执行过的操作的日志 git reflog //初始化git git init //合并多个(2个或2个以上)commit git rebase -i HEAD~4 pick b3d29ba tmp fixup dd3 ...
分类:
其他好文 时间:
2016-05-23 15:00:42
阅读次数:
117
Pick-up sticks Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 11884 Accepted: 4499 Description Stan has n sticks of various length. He thr ...
分类:
其他好文 时间:
2016-05-19 23:16:53
阅读次数:
227
题目248题目信息运行结果本题排行讨论区
BUYING FEED
时间限制:3000 ms | 内存限制:65535 KB
难度:4
描述
Farmer John needs to travel to town to pick up K (1 <= K <= 100)pounds of feed. Driving D miles with K pounds of fee...
分类:
其他好文 时间:
2016-05-19 17:48:17
阅读次数:
226
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(intent, PICK_CONTACT); 这个跳转为什么部分手机会报错呢?? ...
分类:
其他好文 时间:
2016-05-16 20:03:26
阅读次数:
217
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma warning(disable:4996)
using std::cin;
using std::cout;
using std::endl;
using std::stringstre...
分类:
其他好文 时间:
2016-05-13 01:46:09
阅读次数:
185
首先是打开本地相册选取图片:
Intent albumIntent = new Intent(Intent.ACTION_PICK);//打开系统的相册
albumIntent.setType("image/*");
startActivityForResult(albumIntent, 0x1004);
选取完图片后在onActivityResult编写取数据的操作:
...
分类:
移动开发 时间:
2016-05-12 23:43:55
阅读次数:
299
Be the Winner
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2945 Accepted Submission(s): 1628Problem Description
Let’s consider m apples...
分类:
其他好文 时间:
2016-05-12 17:10:27
阅读次数:
234
题意:输入t,表示t组样例, 输入n,len,表示物品的个数和容器长度。输入n行a,v表示没个物品的长度和价值。每个物品只要能有一半放在容器上就可以(为了平衡,如果是一个物品的话不论它有多长都可以放在这个容器上),不可以重叠,求这个容器可以放最大的价值是多少。 分析:dp[i][j][k]表示前i个 ...
分类:
其他好文 时间:
2016-05-11 01:18:09
阅读次数:
166