06 2015 档案
日历问题
摘要://日历问题 #includeint type(int i);char week[7][10]={"Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday"};int year[2]={365,366};int m... 阅读全文
posted @ 2015-06-25 19:34 _noname 阅读(153) 评论(0) 推荐(0)
细菌繁殖
摘要://细菌繁殖#includeint main(){ int month[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int n; scanf("%d",&n); int month_1,day_1,Num,month_2,day_2; for(int i... 阅读全文
posted @ 2015-06-24 11:22 _noname 阅读(163) 评论(0) 推荐(0)
判断闰年
摘要://poj:2733#include/*int main(){ int a; scanf("%d",&a); if(a%400==0||(a%4==0&&a%100!=0)) printf("Y"); else printf("N"); return 0;}*/int main(){ int... 阅读全文
posted @ 2015-06-19 13:21 _noname 阅读(127) 评论(0) 推荐(0)
CaesarCode
摘要://poj:2975#include#includevoid decipher(char message[]);int main(){ char message[201]; gets(message); while(strcmp(message,"START")==0) { decipher(... 阅读全文
posted @ 2015-06-18 14:52 _noname 阅读(110) 评论(0) 推荐(0)
substring
摘要://poj:2744#include#include int t,n; char str[101][101]; int searchMaxSubString(char *source) { int subStrLen=strlen(source); int sourceStrLen=str... 阅读全文
posted @ 2015-06-17 11:47 _noname 阅读(176) 评论(0) 推荐(0)
configure: error: Cannot use an external APR with the bundled APR-util
摘要:源码安装Apache,报错:Cannot use an external APR with the bundled APR-util httpd-2.2.29.tar.gz 解决此问题: 1、安装APR: [root@web httpd-2.2.29]# cd srclib/apr ... 阅读全文
posted @ 2015-06-16 17:45 _noname 阅读(820) 评论(0) 推荐(0)
字符串处理487-3279
摘要://poj:2974#include#include#includechar map[]="2223334445556667*77888999*";char str[80],telNumbers[100000][9];int compare(const void *elem1,const voi... 阅读全文
posted @ 2015-06-16 12:14 _noname 阅读(153) 评论(0) 推荐(0)
统计字符数
摘要://poj:2742#include#includeint main(){ int cases; int sum[26],i,max; char str[1001]; scanf("%d",&cases); while(cases>0) { scanf("%s",str); int len=... 阅读全文
posted @ 2015-06-15 11:09 _noname 阅读(160) 评论(0) 推荐(0)
数制转换问题:skew
摘要://poj:2973#include#includeint main(){ int i,k,base[31]; char skew[32]; base[0]=1; for(i=1;i<32;i++) base[i]=2*base[i-1]+1; while(1) { scanf("%s",s... 阅读全文
posted @ 2015-06-12 09:47 _noname 阅读(124) 评论(0) 推荐(0)
数制转换问题:确定进制
摘要://poj:2972 #include#includelong b2ten(char *x,int b){ int ret=0; int len=strlen(x); for(int i=0;i=b) return -1; ret*=b; ret+=x[i]-'0'; } return (l... 阅读全文
posted @ 2015-06-11 22:05 _noname 阅读(147) 评论(0) 推荐(0)
BP神经网络非线性函数拟合应用
摘要:%% BP神经网络的输入输出数据% clear all% clc% x=rand(1,1500);% y=rand(1,1500);% p=[x;y]';% z=x.^2-y.^2+3;% save x x% save y y% save p p% save z z %%clear allclc... 阅读全文
posted @ 2015-06-11 16:34 _noname 阅读(1258) 评论(0) 推荐(0)
计算题:装箱问题
摘要://poj:1017#includeint main(){ int a,b,c,d,e,f,x,y,N; int u[4]={0,5,3,1}; while(1) { scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f); if(a==0&&b==0&&c==0&&... 阅读全文
posted @ 2015-06-10 10:05 _noname 阅读(130) 评论(0) 推荐(0)
WindowsAPI小程序
摘要:#include#includeLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);INT WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdParam,... 阅读全文
posted @ 2015-06-09 17:37 _noname 阅读(147) 评论(0) 推荐(0)