声明:也是摘自网上各路大神的。memset的正规用法是只能用来初始化char类型的数组的,也就是说,它只接受0x00-0xFF的赋值。因为char是1字节,memset是按照字节赋值的,相当于把每个字节都设为那个数,所以char型的数组可赋任意值;而对于也常用的int类型,int是4个字节,当mem...
                            
                            
                                分类:
其他好文   时间:
2015-03-02 20:51:08   
                                阅读次数:
144
                             
                         
                    
                        
                            
                            
                                传送门
线段树的区间查找最大最小值模板.
裸的线段树
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#define ls u << 1
#define rs u << 1 | 1
#define lson l, mid, u << 1
#de...
                            
                            
                                分类:
其他好文   时间:
2015-02-12 22:51:10   
                                阅读次数:
165
                             
                         
                    
                        
                            
                            
                                Camel trading
Time Limit: 1 second
Background
Aroud 800 A.D., El Mamum, Calif of Baghdad was presented the formula 1+2*3*4+5, which had its origin in the financial accounts of a c...
                            
                            
                                分类:
其他好文   时间:
2015-02-05 21:59:33   
                                阅读次数:
177
                             
                         
                    
                        
                            
                            
                                http://acm.hdu.edu.cn/showproblem.php?pid=4302
Problem Description
Holedox is a small animal which can be considered as one point. It lives in a straight pipe whose length is L. Holedox can on...
                            
                            
                                分类:
其他好文   时间:
2015-01-20 22:14:50   
                                阅读次数:
194
                             
                         
                    
                        
                            
                            
                                求最大最小值,不需要排序代码如下: 1 #include 2 using namespace std; 3 4 int n,max_grade=-1,min_grade=150; 5 int grade_temp; 6 string name1,name2,num1,num2,name_temp,....
                            
                            
                                分类:
其他好文   时间:
2015-01-20 17:36:37   
                                阅读次数:
124
                             
                         
                    
                        
                            
                            
                                #include#include#include using namespace std;int main(){ cout ::max)(); cout ::min)() ::max)(); cout ::min)() ::max)(); cout ::min)() ::ma...
                            
                            
                                分类:
编程语言   时间:
2015-01-10 20:57:43   
                                阅读次数:
399
                             
                         
                    
                        
                            
                            
                                #include "iostream"
#include "memory.h"
#include "stdio.h"
#include "limits.h"
typedef int Type;
const int MAXN=15;
const int MIN=INT_MIN;
class stack...
                            
                            
                                分类:
其他好文   时间:
2015-01-03 11:52:00   
                                阅读次数:
120
                             
                         
                    
                        
                            
                            
                                今天在做项目的时候要对表格内的部分的最大最小值高亮解决方案1. 引用 ng-class2. 引用原型求最大最小值实例AngularJs HTML 代码 1 2 3 4 标题1 5 标题2 6 标题3...
                            
                            
                                分类:
Web程序   时间:
2014-12-24 17:40:08   
                                阅读次数:
141
                             
                         
                    
                        
                            
                            
                                一、数学相关1、绝对值:abs(-1)2、最大最小值:max([1,2,3])、min([1,2,3])3、序列长度:len('abc')、len([1,2,3])、len((1,2,3))4、取模:divmod(5,2)//(2,1)5、乘方:pow(2,3,4)//2**3/46、浮点数:rou...
                            
                            
                                分类:
编程语言   时间:
2014-12-23 19:22:58   
                                阅读次数:
228
                             
                         
                    
                        
                            
                            
                                原文链接#include#include#includeusingnamespacestd;intmain(){cout::max)();cout::min)()::max)();cout::min)()::max)();cout::min)()::max)();cout::min)()::max)...
                            
                            
                                分类:
编程语言   时间:
2014-12-17 17:51:17   
                                阅读次数:
192