-
长乐培训Day1
长乐培训Day1 T1 魔法照片 题目 【题目描述】 如果你看过《哈利波特》,你就会知道魔法世界里的照片是很神奇的。也许是因为小魔法师佳佳长的太帅,很多人都找他要那种神奇的魔法照片, 而且还都要佳佳和他的MM的合照。那些照片可是非常珍贵的,他到底应该把照片给谁呢...
-
多线程学习:win32多线程编程基本概念(转)
多线程学习:win32多线程编程基本概念(转) 一、定义: 1.进程和线程的区别 进程:是程序的执行过程,具有动态性,即运行的程序就叫进程,不运行就叫程序 ,每个进程包含一到多个线程。 线程:系统中的最小执行单元,同一进程中有多个线程,线程可以共享资源,一旦出现...
-
Matrix Cells in Distance Order
Matrix Cells in Distance Order Matrix Cells in Distance Order We are given a matrix with R rows and C columns has cells with integer coordinates (r, c), where 0 = r R and 0 = c C.Additionally, we are given a cell in that matrix with coordinates (r0,...
-
C++复习笔记
C++复习笔记 C++基本数据类型 char1字节(8位) 取值范围 (-2^7)~(2^7-1)即-128~127 signed char1字节(8位) 取值范围 (-2^7)~(2^7-1)即-128~127 unsigned char 1字节(8位) 取值范围 0~(2^8-1)即0~255 short int(或short)2字节(16位) 取值范围(-2^15)~(2^1...
-
【并查集】模板 + 【HDU 1213、HDU 1232、POJ 2236、POJ 1703】
【并查集】模板 + 【HDU 1213、HDU 1232、POJ 2236、POJ 1703】例题详解 不想看模板,想直接看题目的请戳下面目录: 目录: HDU 1213 How Many Tables【传送门】 HDU 1232 畅通工程 【传送门】 POJ 2236 Wireless Network 【传送门】 POJ 1703 Find them, Catch them...
-
Median of Two Sorted Arrays
Median of Two Sorted Arrays Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 an...
-
Relative Sort Array
Relative Sort Array Relative Sort Array Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1.Sort the elements of arr1 such that the relative ordering of items in arr1 are the same as in arr2....
-
二分法(四):采用二分法解决“最大化平均值”问题
二分法(四):采用二分法解决“最大化平均值”问题 【例1】切绳子。 题目描述 有N条绳子,它们的长度分别为Li。如果从它们中切割出K条长度相同的绳子,这K条绳子每条最长能有多长?答案保留到小数点后2位(直接舍掉2位后的小数)。 输入输出格式 输入格式: 第一行两...
-
使用Spring Ehcache二级缓存优化查询性能
使用Spring Ehcache二级缓存优化查询性能 最近在对系统进行优化的时候,发现有些查询查询效率比较慢,耗时比较长, 通过压测发现,主要耗费的性能 消耗在 查询数据库,查询redis 数据库:连接池有限,且单个查询不能消耗大量的连接池,占用大量IO,否则会引起整个应用的IO异常及...
-
【转载】C++编译过程
【转载】C++编译过程 C++编译过程 C++ 编译过程 在介绍编译器之前,先简单地说一下 C++ 的编译过程,以便理解编译器的工作。 编译(compiling)并不意味着只创建仅仅一个可执行文件。创建一个可执行文件是一个多级过程,其中最重要的过程是预处理(preprocessing),编...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
