码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
I Hate It---hdu1754线段树
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1754和上一题一样是模板题,就是那道题求得是和,这道求得是最大值:#include#include#include#include#include#include#includeusing namespace...
分类:其他好文   时间:2015-07-30 20:52:48    阅读次数:140
简单的串行通信程序
我写的非常早期的串行通信代码。但是,今天也用,做一个简单的类封装。码,如以下:rs485Test.h#include #include #include #include #include #include #include #include #include class RS485 { publi...
分类:其他好文   时间:2015-07-30 20:49:16    阅读次数:127
HDU 2604 Queuing
#include#includeusing namespace std;int m;int f(int x){ int s1[5][5],s2[5][5],s3[5][5],i,a=0,j,k,b=0,c=0,d=0; memset(s1,0,sizeof(s1)); memset...
分类:其他好文   时间:2015-07-30 20:47:20    阅读次数:98
HDOJ(1018)
数学公式推导方法一:①:10^M #include#includeusing namespace std;int main(){ int T; cin>>T; while(T--) { int n; cin>>n; double an...
分类:其他好文   时间:2015-07-30 20:44:46    阅读次数:126
hdu5327_Olympiad(数组前缀和)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5327题解:1.判重 (利用set或压成2进制) 2.前缀和,结果为 sum[b] - sum[a-1]#include #include #include #include #include<cstdio...
分类:编程语言   时间:2015-07-30 19:34:46    阅读次数:114
eclipse中用struts2时报Path must include project and resource name: /struts-default.xml的错误
?? 如题,错误图片: 解决方法,clean一下...
分类:系统相关   时间:2015-07-30 19:33:43    阅读次数:1338
C语言 输出系统时间
一、输出系统时间 #include #include #include typedef struct tm timeinfo;//时间的结构体 int main () { time_t rawtime; //时间类型 timeinfo *timeinfos; //时间结构体 指针变量 time(&rawtime); //获取时间的秒数,从1970年1月1日开始,存入rawtim...
分类:编程语言   时间:2015-07-30 19:32:50    阅读次数:143
排序汇总
//排序汇总 #include #include #define arr_len(array) (sizeof(array) / sizeof(array[0])) clock_t start_time, end_time;void swap(int *arr, int i, int j){ int temp = arr[i]; arr[i] =...
分类:编程语言   时间:2015-07-30 19:30:45    阅读次数:115
A Simple Problem with Integers---poj3468线段树
http://poj.org/problem?id=3468题意:有一个比较长的区间可能是100000.长度, 每个点都有一个值(值还比较大),现在有一些操作:C a b c, 把区间a--b内全部加上cQ a b,求区间ab的值和。#include#include#include#includeu...
分类:其他好文   时间:2015-07-30 19:07:51    阅读次数:118
HDOJ1238(string)
string中自带的find(cosnt char *)可完成字符串匹配,该题目的是练习string的使用。字符串长度较小,暴力即可。#include#include#includeusing namespace std;const int SIZE=102;int main(){ int T...
分类:其他好文   时间:2015-07-30 19:01:21    阅读次数:84
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!