流水依依

希望朋友们有个好的身体,开开心心工作与学习。

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 ··· 14 下一页

2014年2月20日 #

摘要: ADO库包含三个基本接口:_ConnectionPtr接口、_CommandPtr接口和_RecordsetPtr接口。_ConnectionPtr接口返回一个记录集或一个空指针。通常使用它来创建一个数据连接或执行一条不返回任何结果的SQL语句,如一个存储过程。使用_ConnectionPtr接口返回一个记录集不是一个好的使用方法。通常同Cdatabase一样,使用它创建一个数据连接,然后使用其它对象执行数据输入输出操作。_CommandPtr接口返回一个记录集。它提供了一种简单的方法来执行返回记录集的存储过程和SQL语句。在使用_CommandPtr接口时,你可以利用全局_Connectio 阅读全文
posted @ 2014-02-20 22:40 流水依依 阅读(951) 评论(0) 推荐(0) 编辑

2014年2月16日 #

摘要: HDU 1166 敌兵布阵 (单点更新,区间求和)Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情报局要研究敌人究竟演习什么战术,所以Tidy要随时向Derek汇报某一段连续的工兵营地一共有多少人,例如Derek问:“Tidy,马上汇报第3个营地到 阅读全文
posted @ 2014-02-16 22:28 流水依依 阅读(412) 评论(1) 推荐(0) 编辑

摘要: B. Fox and Minimal pathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel wants to write a task for a programming contest. The task is: "You are given a simple undirected graph withnvertexes. Each its edge has unit length. You should ca 阅读全文
posted @ 2014-02-16 20:52 流水依依 阅读(245) 评论(0) 推荐(0) 编辑

摘要: A. Fox and Box Accumulationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel hasnboxes in her room. They have the same size and weight, but they might have different strength. Thei-th box can hold at mostxiboxes on its top (we'll callxi 阅读全文
posted @ 2014-02-16 14:50 流水依依 阅读(195) 评论(0) 推荐(0) 编辑

2014年2月15日 #

摘要: D. Inna and Sweet Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves sweets very much. That's why she decided to play a game called "Sweet Matrix".Inna sees ann × mmatrix andkcandies. We'll index the matrix row 阅读全文
posted @ 2014-02-15 22:03 流水依依 阅读(220) 评论(0) 推荐(0) 编辑

2014年2月13日 #

摘要: C. Inna and Candy Boxestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves sweets very much. She hasnclosed present boxes lines up in a row in front of her. Each of these boxes contains either a candy (Dima's work) or nothing (Sereja 阅读全文
posted @ 2014-02-13 16:12 流水依依 阅读(200) 评论(0) 推荐(0) 编辑

2014年1月25日 #

摘要: B. Bear and Stringstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe bear has a strings = s1s2...s|s|(record|s|is the string's length), consisting of lowercase English letters. The bear wants to count the number of such pairs of indicesi, j( 阅读全文
posted @ 2014-01-25 21:23 流水依依 阅读(210) 评论(0) 推荐(0) 编辑

2014年1月24日 #

摘要: 年末感想之(渣渣的我) 仔细想想,搞比赛的日子4年有余了,确实不服老不行了,直到现在平均每天的题量都在3题左右。其实真想说,“渣渣的我”。做的题确实不少了,但是水平还是上不了档次。 今天写这篇文章是想总结这几年写代码的经验。首先这篇文章的读者是针对于【数学专业】的学生、老师。现在程序设计竞赛人才辈出,各大院校都有不少高手。在计算机行业里,数学专业的学生的优势就在算法这一块,如果连算法都没有优势,那就不知道怎样去拿年薪20W起的工作了,当然java、.net系统程序员干的好的月薪也在8K起。 闲话少说。【步骤一:数学基础】 首先,大一、二的数学小伙伴们编码和软工的学生差距相当大,... 阅读全文
posted @ 2014-01-24 15:01 流水依依 阅读(612) 评论(1) 推荐(0) 编辑

2014年1月17日 #

摘要: C. New Year Ratings Changetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne very well-known internet resource site (let's call it X) has come up with a New Year adventure. Specifically, they decided to give ratings to all visitors.There aren 阅读全文
posted @ 2014-01-17 18:42 流水依依 阅读(210) 评论(0) 推荐(0) 编辑

摘要: A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves romance, so this year he decided to illuminate his room with candles.Vasily hasacandles.When Vasily lights up a new candle, it first burns for an hour a 阅读全文
posted @ 2014-01-17 17:41 流水依依 阅读(304) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 14 下一页