码迷,mamicode.com
首页 > 其他好文
poj 1436 Horizontally Visible Segments(线段树、区间覆盖)
Horizontally Visible Segments Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 4645   Accepted: 1706 Description There is a number of disjoint vertical line seg...
分类:其他好文   时间:2015-07-30 13:37:43    阅读次数:191
生产者消费者问题
#include #include #include #include #include #define BUFF_SIZE 10 char buffer[BUFF_SIZE]; char count = 0; //缓冲池里的信息数目 sem_t sem_mutex; //生产者和消费者的互斥锁 sem_t p_sem_mutex; //空的时候,对消费者不可进 sem_t c_sem...
分类:其他好文   时间:2015-07-30 13:37:50    阅读次数:125
hdu 2199~Can you solve the equation?~二分法求解
Can you solve this equation? Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 28   Accepted Submission(s) : 17 Problem Description Now,given ...
分类:其他好文   时间:2015-07-30 13:38:39    阅读次数:104
EJB学习(四)——Enterprise Bean(企业Bean)和Entity Bean(实体Bean)
一、为什么使用EJB ?     企业Bean运行在EJB容器中,企业Bean实际上就是一个封装了业务逻辑的Java类,那么我们为什么要使用EJBne ?                                           1.最重要的原因:分布式。简要的说,分布式可以将分布在各处的资源综合利用,但是对于用户来说展现的是一个统一的整体;分布式可以动态分配任务,分散...
分类:其他好文   时间:2015-07-30 13:37:39    阅读次数:128
EularProject 38:数字组合1-9分解为数字与1到n的乘积的和
Pandigital multiples Problem 38 Take the number 192 and multiply it by each of 1, 2, and 3:192 × 1 = 192 192 × 2 = 384 192 × 3 = 576 By concatenating each product we get the 1 to 9 pandigital, 192...
分类:其他好文   时间:2015-07-30 13:37:00    阅读次数:134
servlet 处理过程
刚才花了一个小时找 servlet 的一个错误,最终找出来了,也大概明白 tomcat 服务器对请求的处理顺序,下面做简单总结: 浏览器发送请求,传给 tomcat 在此请求地址指向的文件里定义了操作方式 请求 POST GET action 的值(例如ABC ) 这里的ABC 是个关键,tomcat 会去自己的映射文件(web.xml )中寻找此ABC 。映射可能是这个样子 <servlet...
分类:其他好文   时间:2015-07-30 13:37:08    阅读次数:103
拾荒者心得
动画触发条件 Trigger 与bool 相似,不同在于执行后会自动回复  原状态      Has ExitTime   退出时间    动画的播放完在转换 设为1 表示 完整的播放     Setings  里有个TranstionDruation     这个是3D平滑   2D用不到  要设为0...
分类:其他好文   时间:2015-07-30 13:33:53    阅读次数:136
欢迎使用CSDN-markdown编辑器
使用Siege格式,我们将模拟一个负载测试,5个并发用户在10秒内访问网站www.example. com。需要说明一下,使用Siege时的并发被称为事务。因此我们要模拟的测试是使用Siege命令让Web服务器在10秒的时间内一次满足5个同时发生的事务. 结果说明: Lifting the server siege…...
分类:其他好文   时间:2015-07-30 13:35:22    阅读次数:122
STM32L1XX使用HAL_UART_Transmit_DMA发送串口数据
使用STM32CubeMX生成初始化代码。 问题: HAL_UART_Transmit_DMA函数只能调用一次,第二次就返回状态HAL_UART_STATE_BUSY 0x02。 原因: stm32l1xx_hal_uart.c开头有描述         (##) DMA Configuration if you need to use DMA process (HAL_UA...
分类:其他好文   时间:2015-07-30 13:35:07    阅读次数:542
SPOJ VLATTICE Visible Lattice Points 初入莫比乌斯
题意:求两个点(x,y,z)的连线不经过其他点有几个 解:即为求GCD(x,y,z)为1的点有几个 解一:因为x,y,z均在1~n内,所以可以用欧拉函数解出 解二:莫比乌斯反演 设f[n]为GCD(x,y,z)=n的个数 设F[b]为b|GCD(x,y,z)的个数,很明显F[b]=(n/i)*(n/i)*(n/i) 所以F[n]=sigema(b|n,f[b]); f[n]=sige...
分类:其他好文   时间:2015-07-30 13:33:18    阅读次数:136
JDK8 并发包学习 Executor/ExecutorService(一)
本文介绍jdk8中与Executor相关的一些接口或类。Executor接口该类提供一个提交任务的方法,提交的任务可以在提交程序本线程运行,也可以在不同的线程运行,也可以在一个线程池中的线程运行,全看如何使用。 However, the {@code Executor} interface does not strictly require that execution be async...
分类:其他好文   时间:2015-07-30 13:32:57    阅读次数:1616
SharePoint 2013 开发——其他社交功能
SharePoint 2013 开发——社交功能...
分类:其他好文   时间:2015-07-30 13:32:42    阅读次数:113
EularProject 39:给周长判断构成直角三角形个数
华电北风吹 天津大学认知计算与应用重点实验室 完成日期:2015/7/30Integer right triangles Problem 39 If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p...
分类:其他好文   时间:2015-07-30 13:31:14    阅读次数:178
封面式 code-代码助手
1  保存代码 2  搜索代码 3  生成网页 下载地址: http://gudianxiaoshuo.com...
分类:其他好文   时间:2015-07-30 13:31:59    阅读次数:123
uva 10603 Fill(倒水问题 BFS)
貌似uva崩了,现在进不去,所以这道题还判断正确与否,其实无所谓了,我这是看的网上的代码,写的基本上一样,唉,没办法,不会做,又看了网上的题解,认真写理解吧还是。。。 构造了一个结构体,water数组用来保存三个杯子的状态,sum用来保存当前的倒水量,visit数组用来保存状态,以 防他们重复访问,三个杯子只需要两个杯子来判断,第三个已经确定,所以开一个二维数组就可以了。。。然后用 reac...
分类:其他好文   时间:2015-07-30 13:32:32    阅读次数:147
[LeetCode]Number of Digit One,解题报告
题目Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example: Given n = 13, Return 6, because digit 1 occurred in the following n...
分类:其他好文   时间:2015-07-30 13:33:17    阅读次数:141
freemark 页面静态化
freemark 页面静态化...
分类:其他好文   时间:2015-07-30 13:32:17    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!