相关分类: Java技术 C/C++ VB delphi
  • 2016 年青岛网络赛---Sort(k叉哈夫曼)

    题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5884 Problem Description Recently, Bob has just learnt a naive sorting algorithm: merge sort. Now, Bob receives a task from Alice. Alice will give Bob N sorted sequences, and the i -th sequence incl...

    2018-06-17 23:45:41

  • 2016 年青岛网络赛---Family View(AC自动机)

    题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5880 Problem Description Steam is a digital distribution platform developed by Valve Corporation offering digital rights management (DRM), multiplayer gaming and social networking services. A family...

    2018-06-17 23:45:39

  • hdu-1856-More is better

    More is better Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 327680/102400 K (Java/Others) Total Submission(s): 24825Accepted Submission(s): 8911 Problem Description Mr Wang wants some boys to help him with a project. Because the project is ra...

    2018-06-17 23:45:32

  • 指针 && 动态内存分配

    C++中的动态内存分配机制 c++中使用new和delete来完成在堆上对动态内存的分配和释放。 注.所有指针都应该被 初始化 如果指针指向的动态内存被释放或没有指向合法的地址,就应该将指针设置为 nullptr, 否则内存泄漏 。 变量: double* pvalue {}; pvalue=new double; *...

    2018-06-17 23:45:29

  • poj-2236-Wireless Network

    Wireless Network Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 24155 Accepted: 10045 Description An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers,...

    2018-06-17 23:45:26

  • poj-1611-The Suspects

    The Suspects Time Limit: 1000MS Memory Limit: 20000K Total Submissions: 34284 Accepted: 16642 Description Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To m...

    2018-06-17 23:45:19

  • 【菜鸟玩Linux开发】在Linux中使用VS Code编译调试C++

    最近项目需求,需要在Linux下开发C++相关项目,经过一番摸索,简单总结了一下如何通过VS Code进行编译调试的一些注意事项。 关于VS Code在Linux下的安装这里就不提了,不管是CentOS还是Ubuntu,如果不懂且搜Q足够的情况下,你会解决的。 一. 前置知识gcc/g++的编译链接...

    2018-06-17 23:45:15

  • poj-1703-Find them, Catch them

    Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 41928 Accepted: 12886 Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon a...

    2018-06-17 23:44:55

  • 大整数乘法(分治法)

    题目:输入两个大整数,用数组保存每一位数,然后用分治法计算; 思路:输入X Y,X高位用A数组保存,低位用B数组保存,Y高位用C数组保存,低位用D数组保存,则:X=A*10^(n/2)+B Y=C*10^(n/2)+D 分治方法:X*Y=A*C*10^n+((A-B)*(D-C)+A*C+B*D)*10^(n/2)+B*D; 代码如下:...

    2018-06-17 23:44:56

  • bzoj 1001狼抓兔子(对偶图+最短路)最大流

    推荐文章:《 浅析最大最小定理在信息学竞赛中的应用》--周冬 题目 现在小朋友们最喜欢的 " 喜羊羊与灰太狼 " ,话说灰太狼抓羊不到,但抓兔子还是比较在行的,而且现在的兔子还比较笨,它们只有两个窝,现在你做为狼王,面对下面这样一个网格的地形: 左上角点为( 1 ,...

    2018-06-17 23:44:44

2