背景之前在做一个定时下载任务的时候,使用的是一个主线程在执行任务;后面需求调整了,需要在启用一个子线程执行优先级更高的单独通道下载。于是下意识的这么做 new Thread//创建后台线程Thread bThread new Thread(new ThreadStart(backgrou…
1 /*2 http://codeforces.com/problemset/problem/449/C3 cf 449 C. Jzzhu and Apples4 数论素数贪心5 */6 #include <cstdio>7 #include <algorithm>8 using namespace std;9 const int Nmax100005;
10 int is_prime[Nmax];
11 int book[Nmax];
12 int cnt[Nmax];…