会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2014acm
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
下一页
2014年8月2日
一些数学函数
摘要: fmod#include #includeint main(int argc, char *argv[]){ float a,b,c; while (scanf("%f %f",&a,&b)) { c=fmod(a,b); printf("%f\n",c...
阅读全文
posted @ 2014-08-02 15:20 2014acm
阅读(134)
评论(0)
推荐(0)
2014年8月1日
c语言 C++ 读一字符串
摘要: 标准c语言#include //---------回车被第一个 gets(s) 接收char s[100]; // -----直接换行,,,,,少一行int main(int argc, char ...
阅读全文
posted @ 2014-08-01 23:58 2014acm
阅读(290)
评论(0)
推荐(0)
poj 1007 DNA Sorting
摘要: 错误#include#include#includeusing namespace std;struct node { int a; char s[1000]; }p[1000];int cmp(node c,node b){ return c.ap[k].s[j]) p[k].a++; ...
阅读全文
posted @ 2014-08-01 23:20 2014acm
阅读(126)
评论(0)
推荐(0)
zju 1188 DNA Sorting
摘要: #include#include#includeusing namespace std;struct node{ int a; char s[105]; }p[105];int cmp(node c,node b){ return c.a #include #inclu...
阅读全文
posted @ 2014-08-01 23:14 2014acm
阅读(118)
评论(0)
推荐(0)
zju 1763
摘要: #include #include using namespace std;int main(int argc, char *argv[]){ double a,b; cin>>a; while (cin>>b) { if (b==999) { ...
阅读全文
posted @ 2014-08-01 22:57 2014acm
阅读(119)
评论(0)
推荐(0)
zju 1151--------rwkj 1332 poj1519
摘要: #include#include#include#include#include#includeusing namespace std;int main(){ int t,i,n,k; string s,ss,s1,s2; while(cin>>t) { ...
阅读全文
posted @ 2014-08-01 22:47 2014acm
阅读(129)
评论(0)
推荐(0)
zju 1251 Bricks box 砖盒----------hdu 1326
摘要: #include using namespace std;int main(){ int a[51],n,k=1; while(cin>>n,n) { int i,ans=0,s=0; for(i=0;i>a[i]; s+=a[i]...
阅读全文
posted @ 2014-08-01 22:41 2014acm
阅读(114)
评论(0)
推荐(0)
zju 1115 Digital roots 数字根
摘要: #include #include using namespace std;int main(){ string n; while(cin>>n,n!="0"){ int s=0,l=n.length(); for(int i=0;i9) s=s/10+s%10; cout...
阅读全文
posted @ 2014-08-01 22:35 2014acm
阅读(131)
评论(0)
推荐(0)
zju 2886
摘要: #include #include using namespace std;int main(int argc, char *argv[]){ int i,n,m; string s; while(cin>>m) { while(m--) { cin>>s; n=1; if(s.si...
阅读全文
posted @ 2014-08-01 21:01 2014acm
阅读(101)
评论(0)
推荐(0)
zju 2478
摘要: -#include using namespace std;int main(int argc, char *argv[]){ int n,i,sum; string s; cin>>n; while(n--) { cin>>s; for(i=0,sum=1;s[i];i++) { if(...
阅读全文
posted @ 2014-08-01 20:56 2014acm
阅读(126)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
下一页
公告