I tested some of the data, it looks normal.But I got WA!Who can help me find the error?THX?This is my code?
#include <stdio.h>
#include <string.h>
int main()
{
int s,n;
int i,j,k;
int len;
char a[15];
while(scanf("%d",&s))
{
getchar();
gets(a);
len=strlen(a);
if(s == 0 && a[0] == '0 ...