摘要:
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... 阅读全文
摘要:
标准c语言#include //---------回车被第一个 gets(s) 接收char s[100]; // -----直接换行,,,,,少一行int main(int argc, char ... 阅读全文
摘要:
错误#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++; ... 阅读全文
摘要:
#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... 阅读全文
摘要:
#include #include using namespace std;int main(int argc, char *argv[]){ double a,b; cin>>a; while (cin>>b) { if (b==999) { ... 阅读全文
摘要:
#include#include#include#include#include#includeusing namespace std;int main(){ int t,i,n,k; string s,ss,s1,s2; while(cin>>t) { ... 阅读全文
摘要:
#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]... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
-#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(... 阅读全文