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: 28865

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 ...

Go to advanced search