标签:style blog http color os io 2014 art
#include <stdio.h> int main() { char str[10002]; char a[1002],b[1002]; while(gets(str)) { sscanf(str,"%s %s",a,b); printf("%s\n",a); printf("%s\n",b); } }
#include <stdio.h>
int main()
{
char str[10002];
char a[1002],b[1002];
while(gets(str))
{
sscanf(str,"%s %s",a,b);
printf("%s\n",a);
printf("%s\n",b);
}
}
#include <stdio.h> int main() { char str[10002]; char a[1002],b[1002],c[1002]; while(gets(str)) { sscanf(str,"%[0-9]%[.]%[0-9]",a,b,c); printf("%s\n",a); printf("%s\n",b); printf("%s\n",c); } }
#include <stdio.h>
int main()
{
char str[10002];
char a[1002],b[1002],c[1002];
while(gets(str))
{
sscanf(str,"%[0-9]%[.]%[0-9]",a,b,c);
printf("%s\n",a);
printf("%s\n",b);
printf("%s\n",c);
}
}
#include <stdio.h> #include<string> int main() { char str[10002]; char a[1002],b[1002],c[1002]; while(gets(str)) { sscanf(str,"%[0-9]%*[.]%[0-9]",a,b,c); printf("%s\n",a); printf("%s\n",b); printf("%s\n",strlen(c)); } }
#include <stdio.h>
#include<string>
int main() {
char str[10002];
char a[1002],b[1002],c[1002];
while(gets(str))
{
sscanf(str,"%[0-9]%*[.]%[0-9]",a,b,c);
printf("%s\n",a);
printf("%s\n",b);
printf("%s\n",strlen(c));
}
}
标签:style blog http color os io 2014 art
原文地址:http://www.cnblogs.com/2014acm/p/3887527.html