码迷,mamicode.com
首页 >  
搜索关键字:lintcode1 a+b problem solution 题解    ( 75925个结果
FZU2171 防守阵地 II (线段树)
Accept: 25 Submit: 98 Time Limit: 3000 mSec Memory Limit : 32768 KB Problem Description 部队中总共有N个士兵,每个士兵有各自的能力指数Xi,在一次演练中,指挥部确定了M个需要防守的地点,指挥部将选择M个士兵依次进入指定地点进行防守任务,获得的参考指数即为M个士兵的能力之和。随着时间的推移,指...
分类:其他好文   时间:2014-04-27 22:42:18    阅读次数:330
FOJ 2170 花生的序列 dp
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2170 贴个baka爷的代码留念。。 数据出的有问题,输入的字符串长度不超过1000 #include #include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f...
分类:其他好文   时间:2014-04-27 22:16:18    阅读次数:359
福州大学第十一届程序设计竞赛菜鸟的题解
Problem 2167 大王叫我来巡山呐 比赛的第二题 呵呵 Problem 2168 防守阵地 I 比赛时看懂第一题 大了下草稿 马上切了它 假设当前x=(ai)*1+(ai+1)*2+(ai+2)*3+''''+(aj)*m 下一次是(ai+1)*1+(ai+2)*2+(ai+3)*3+''''+(aj+1)*m = (ai)*1+(ai+1)*2+(ai+2)*3+''''+(a...
分类:其他好文   时间:2014-04-27 21:46:59    阅读次数:224
Timus 1120. Sum of Sequential Numbers 数学题
There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all. Input There is the only number N, 1 ≤ N ≤ 109. O...
分类:其他好文   时间:2014-04-27 21:38:05    阅读次数:544
BZOJ 3240 [Noi2013] 矩阵游戏 题解
【原题】...
分类:其他好文   时间:2014-04-27 21:37:07    阅读次数:426
FOJ 2171 防守阵地 II 区间求和区间查询 线段树
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2171 题意: 给定n长序列,常数m,q个询问 对于每个询问x 1、求[x, x+m-1] 区间和 2、[x,x+m-1]区间的所有元素-1 线段树裸题,不知为何全用longlong会re,只能改成部分longlong #include #include #define ll long long ...
分类:其他好文   时间:2014-04-27 21:35:00    阅读次数:328
Sdut 2416 Fruit Ninja II(山东省第三届ACM省赛 J 题)(解析几何)
Sdut 2416 Fruit Ninja II(山东省第三届ACM省赛 J 题)(解析几何) 数学问题,注意精度...
分类:其他好文   时间:2014-04-27 21:22:07    阅读次数:313
福州大学第十一届程序设计竞赛
福州大学第十一届程序设计竞赛 Contest Finished! Tag Pro.ID Problem Title Ratio(AC/Submit) 1 大王叫我来巡山呐 80.31%(261/325) 2 防守阵地 I 23.48%(193/822) 3 shadow 13.23%(97/733) 4 ...
分类:其他好文   时间:2014-04-27 21:21:59    阅读次数:300
HDU 1753 大明A+B
大明A+B Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7562    Accepted Submission(s): 2667 Problem Description 话说,经过了漫长的一个多月,小明已经成长...
分类:其他好文   时间:2014-04-27 21:21:00    阅读次数:263
Timus 1139. City Blocks 题解
The blocks in the city of Fishburg are of square form. N avenues running south to north and Mstreets running east to west bound them. A helicopter took off in the most southwestern crossroads and fl...
分类:其他好文   时间:2014-04-27 21:16:59    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!