Search found 1 match

by Suman (SUST)
Sun Aug 18, 2002 4:38 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 17907

Why WA?

My code is : [c] #include<stdio.h> #include<string.h> void main() { char string[81]; int period=0,N,counter,length,index,flag; scanf("%d",&N); for(counter = 1; counter <= N; counter++) { scanf("%s",&string); length = strlen(string); for(index = 0; index < length; index++) { period++; if(string[0] ==...

Go to advanced search