上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
  2015年6月15日
摘要: //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 阅读(120) 评论(0) 推荐(0) 编辑
  2015年6月12日
摘要: //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 阅读(119) 评论(0) 推荐(0) 编辑
  2015年6月11日
摘要: //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 阅读(139) 评论(0) 推荐(0) 编辑
摘要: %% 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 阅读(1234) 评论(0) 推荐(0) 编辑
  2015年6月10日
摘要: //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 阅读(123) 评论(0) 推荐(0) 编辑
  2015年6月9日
摘要: #include#includeLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);INT WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdParam,... 阅读全文
posted @ 2015-06-09 17:37 _noname 阅读(141) 评论(0) 推荐(0) 编辑
  2015年5月25日
摘要: input: 3 3 2 EBG GEE EGE BEG GEE output: EEG #includeint main(int argc,char** argv){ int n,m,p; int characters[26]; int i,j; for(i=0;i<26;i++) { ch... 阅读全文
posted @ 2015-05-25 10:46 _noname 阅读(143) 评论(0) 推荐(0) 编辑
  2015年5月23日
摘要: input: 500 3 150 300 100 200 470 471 output: 298 #include int main(int argc,char **argv) { int L,i,j,n; bool trees[10001]; for(i=0;i<10001;i++)... 阅读全文
posted @ 2015-05-23 21:15 _noname 阅读(117) 评论(0) 推荐(0) 编辑
  2015年5月22日
摘要: 输入样例 2 a1 c3 f5 f8 输出样例 2 1 2 1 3 1 1 Inf #include#includeint main(){ int nCases,i; scanf("%d",&nCases); for(i=0;i<nCases;i++) { char begin[5],end[... 阅读全文
posted @ 2015-05-22 21:20 _noname 阅读(294) 评论(0) 推荐(0) 编辑
  2015年5月21日
摘要: 一个笼子里面关了鸡和兔子(鸡有两只脚,兔子有四只脚,没有列例外)。已经知道了笼子里面脚的总数a,问笼子里面至少有多少只动物,至多有多少只动物? #include int main(int argc, char** argv) { int nCases,nFeet,i; scanf("%d",&... 阅读全文
posted @ 2015-05-21 21:45 _noname 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页