码迷,mamicode.com
首页 >  
搜索关键字:bestcoder    ( 690个结果
hdu 4907 Task schedule(二分)
# include # include # include using namespace std; int vis[200010]; int b[200100]; # define Max 200010 int main() { int t,T,n,m,a,i; while(~scanf("%d",&T)) { while(T--) { scanf("%d%d",&n,...
分类:其他好文   时间:2014-08-04 18:04:47    阅读次数:258
[BestCoder Round #3] hdu 4907 Task schedule (模拟简单题)
解题思路: 一开始...
分类:其他好文   时间:2014-08-04 18:01:40    阅读次数:123
[BestCoder Round #3] hdu 4908 BestCoder Sequence (计数)
BestCoder Sequence Problem Description Mr Potato is a coder. Mr Potato is the BestCoder. One night, an amazing sequence appeared in his dream. Length of this sequence is odd, the median...
分类:其他好文   时间:2014-08-04 17:42:57    阅读次数:282
BestCoder Round #3HDU 4907
1. HDU 4907:http://acm.hdu.edu.cn/showproblem.php?pid=4907 中文题我就不说题意了,直接说解题思路吧! ① 第一种思路就是我比赛时的思路,将a数组先全部清为零,当输入机器在ti时间执行第i个任务时,将a[ti]置为1,开始输入q(表示在q时间有...
分类:其他好文   时间:2014-08-04 17:26:27    阅读次数:260
【HDU】4908 (杭电 BC #3 1002题)BestCoder Sequence ——哈希
BestCoder SequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 573Accepted Submission(s): 201Pr...
分类:其他好文   时间:2014-08-04 17:24:17    阅读次数:147
BestCoder Round #3
Task schedulehttp://acm.hdu.edu.cn/showproblem.php?pid=4907 1 #include 2 #include 3 #define mt(a,b) memset(a,b,sizeof(a)) 4 const int M=200010; 5 int ...
分类:其他好文   时间:2014-08-04 17:01:07    阅读次数:211
hdu 4908 BestCoder Sequence
# include # include using namespace std; int main() { int n,m,i,sum,cot,flag,j; int map[80040]; int a[40010]; int ans1; int ans2; while(~scanf("%d%d",&n,&m)) { ans1=ans2=40010; memset(map...
分类:其他好文   时间:2014-08-04 14:33:47    阅读次数:180
HDU 4910 HDOJ Problem about GCD BestCoder #3 第四题
首先 m = 1 时 ans = 0对于 m > 1 的 情况 由于 1 到 m-1 中所有和m互质的数字,在 对m的乘法取模 运算上形成了群 ai = ( 1 2的情况,只需求a^2 = 1 (mod m)的解的个数是不是4的倍数a^2 = 1 (mod m) 等价变换(a + 1)(a -...
分类:其他好文   时间:2014-08-04 14:15:17    阅读次数:284
HDU4907——Task schedule(BestCoder Round #3)
Task scheduleDescription有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之外的任务请求,请计算何时这个任务才能被执行。机器总是按照工作表执行,当机器空闲...
分类:其他好文   时间:2014-08-04 13:37:48    阅读次数:203
HDU4908——BestCoder Sequence(BestCoder Round #3)
BestCoder SequenceProblem DescriptionMr Potato is a coder.Mr Potato is the BestCoder.One night, an amazing sequence appeared in his dream. Length of t...
分类:其他好文   时间:2014-08-04 13:25:37    阅读次数:213
690条   上一页 1 ... 63 64 65 66 67 ... 69 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!