会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Supernatural
https://blog.csdn.net/williamfan21c
博客园
首页
新随笔
联系
订阅
管理
上一页
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
阅读(157)
评论(0)
推荐(0)
2015年6月12日
数制转换问题: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
阅读(122)
评论(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
阅读(145)
评论(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
阅读(1251)
评论(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
阅读(128)
评论(0)
推荐(0)
2015年6月9日
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
阅读(145)
评论(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
阅读(151)
评论(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
阅读(121)
评论(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
阅读(323)
评论(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
阅读(174)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页