#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));
}
}
时间: 2024-12-22 09:19:22