码迷,mamicode.com
首页 >  
搜索关键字:count and say    ( 19436个结果
第一次集训个人赛 T1(签到题)
一、题目DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’t wr...
分类:其他好文   时间:2014-07-22 22:53:15    阅读次数:242
Hdu1002 大数加法
#include #include #include #include using namespace std;const int MAX = 1010;char s1[MAX],s2[MAX];int s[MAX];int main(){ int n, c, m, count = 1; ...
分类:其他好文   时间:2014-07-22 22:51:16    阅读次数:145
poj1436 Horizontally Visible Segments
DescriptionThere is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connect...
分类:其他好文   时间:2014-07-20 09:27:15    阅读次数:351
【Oracle学习笔记】
---------------loop循环定义变量--------------------declare cursor c1 is select * from emp;# rec emp%rowtype;# i numeber:=1; # v_count number;begin# select count(*) into v_count from emp;#(1) open c1; loop...
分类:数据库   时间:2014-07-20 00:33:20    阅读次数:334
STL 源码剖析 算法 stl_algo.h -- search_n
search_n ---------------------------------------------------------------------------------------- 描述:在序列[first, last) 所涵盖的区间中,查找"连续 count 个符合条件之元素"所形成的子序列, 并返回迭代器 last 思路: 1.首先找出 value 第一次出现点 2.该出现点的后面是否连续出现 count - 1 个 value 3.如果是,找到了,如果不是,在当前元素后的区间重新找...
分类:其他好文   时间:2014-07-19 23:31:25    阅读次数:355
查询数据库中重复记录的方法
select * from [DataBase].[dbo].[TableName] where [字段一] in (select [字段一] from [DataBase].[dbo].[TableName] group by [字段一] having count([字段一]) > 1)1、查找表...
分类:数据库   时间:2014-07-19 19:13:10    阅读次数:285
UvaLive 6663 Count the Regions 离散化+DFS
链接:http://vjudge.net/problem/viewProblem.action?id=49408 题意:在平面内给出若干个矩形,求出它们能将整个平面分成多少份。 思路:刚开始一眼看到觉得是几何题,但是发现最多只有50个矩形后,灵光一闪觉得直接离散化再暴力就可以了。把所有矩形的x,y坐标分别离散化,并且为了防止出现离散的太近导致矩形之前没有空隙的情况,将所有点离散化的坐标记作偶数...
分类:其他好文   时间:2014-07-19 18:24:19    阅读次数:222
HDU 4450 Draw Something
Problem DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’...
分类:其他好文   时间:2014-07-19 18:24:12    阅读次数:205
聚合函数查询 group by having
SELECT COUNT(p.id) AS statisticsCount, c.dept, c.type, p.userId, p.baibanFROM de_tbfw_order_schedulingperson p , de_tbfw_order_scheduling cwhere p.tbf...
分类:其他好文   时间:2014-07-19 16:15:24    阅读次数:240
UVA 10090 Marbles(扩展欧几里得)
Marbles Input: standard input Output: standard output I have some (say, n) marbles (small glass balls) and I am going to buy some boxes to store them. The boxes are of two types: Type 1: each ...
分类:其他好文   时间:2014-07-19 08:01:10    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!