码迷,mamicode.com
首页 >  
搜索关键字:requestdispatcher forward include    ( 87212个结果
[HDU 1166 敌兵布阵] 线段树 或 树状数组
1 #include 2 #include 3 #include 4 using namespace std; 5 int n,C[50005]; 6 //-------------------------- 7 int lowbit(int x){ 8 return x&-x; 9 }1...
分类:其他好文   时间:2014-07-22 23:12:33    阅读次数:311
2014华为编程比赛-筷子问题
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n); if(n>max) { printf("...
分类:其他好文   时间:2014-07-22 23:12:15    阅读次数:325
Codeforces Round #243 (Div. 1)
---恢复内容开始---A枚举l,r 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 using namespace std;11 #defin....
分类:其他好文   时间:2014-07-22 23:12:13    阅读次数:311
Chap3: question: 11 - 18
11. double 数值的整数次方note: 浮点数表示时有误差,判等时必须自己根据精度要求实现。#include #include using namespace std;bool equal(double num1, double num2) // key 1{ if(num1 - num2 ...
分类:其他好文   时间:2014-07-22 23:11:56    阅读次数:436
数组与指针——参数
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:其他好文   时间:2014-07-22 23:11:34    阅读次数:313
Change ICON of MFC Application and Dialog
Change ICON of MFC Application and Dialoghttp://www.codeproject.com/Tips/406870/Change-ICON-of-MFC-Application-and-Dialog#include "FirstApp.h"#include...
分类:移动开发   时间:2014-07-22 23:10:35    阅读次数:553
[ACM] Color the ball [线段树水题][数组开大]
DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a 2 #include 3 #define maxn 300000 4 class Node{ 5 public: 6 int l,r; 7 __int64 add;//附加...
分类:其他好文   时间:2014-07-22 23:10:14    阅读次数:295
递归小题中的空间换时间思想
题目: 如数: 1 1 2 3 5 8 13 21 34 55 ......序号: 0 1 2 3 4 5 6 7 89 ...... 由用户输入序号,输出对应的数值。效果:实现代码:#include int bian(int num);//static int shu[100]={1,1};int...
分类:其他好文   时间:2014-07-22 23:10:13    阅读次数:353
简单的时间显示
效果图:实现代码:/************************//* 简单的时间显示 *//**********************/#include #include /*使用sleep()函数用的头文件*/#include int main(){ int second...
分类:其他好文   时间:2014-07-22 23:09:54    阅读次数:290
hdu 1104 数论+bfs
题意:给n,m,k;输出n经过+-*%后(n%k+k)%k==((n+1)%k)%k 输出最小路径与运算副zsd:% 只是求余数 有正负 mod 是求模 无正负、yhd:对m*k求余对 对k求余不对#include#includeusing namespace std;struct Node{ .....
分类:其他好文   时间:2014-07-22 23:06:14    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!