摘要: 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 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 标准c语言#include //---------回车被第一个 gets(s) 接收char s[100]; // -----直接换行,,,,,少一行int main(int argc, char ... 阅读全文
posted @ 2014-08-01 23:58 2014acm 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 错误#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 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(94) 评论(0) 推荐(0) 编辑
摘要: -#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 阅读(119) 评论(0) 推荐(0) 编辑