Search found 3 matches

by rezwana
Tue Mar 09, 2004 5:09 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 25819

WHY wa 455

hi,

i know there is prob in taking multiple input.
i want to know the solution.

CAN ANYONE HELP ME PLZ.
by rezwana
Mon Mar 08, 2004 7:02 am
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 10859

why WA 151

plzzzzzz help. i am getting WA.why? here is my code #include<stdio.h> #include<string.h> int a[101]; int i,n,r,count,flag; int main(){ while(1){ scanf("%d",&n); if(n==0) break; for(r=2;;r++){ i=2; a[1]=1; count=0; flag=0; while(1){ if(a ==0) count++; if(count==r){ if(i==13) break; a =1...
by rezwana
Mon Mar 08, 2004 6:55 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 25819

why WA 455

is the way of taking multiple input correct? But when i run my program it stops execution after one "end of file" input. Anyway my code shows correct answers for abaaababaaab 6 mangomangomangom 16 ababc 5 hohoho 2 ababcababc 5 asdfgh 6 i think the prob is in the way of taking multiple inpu...

Go to advanced search