按照启动方式分类 谷歌官网对Service的分类 Service根据启动方式分为两类:Started和Bound.其中,Started()是通过startService()来启动,主要用于程序内部使用的Service,而Bound是通过bindService()来启动,允许多个应用程序共享同一个Service. Started Service 1.startService()来启动 startService通过Activity的contact 调用startService(service). 2…
0-1背包 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2602 #include <stdio.h> #include <string.h> #include <algorithm> #define MAX 10000 using namespace std; int val[MAX]; int w[MAX]; int dp[MAX]; int main() { int t; scanf("%d",…