Search found 24 matches

by Sabiha_Fancy
Fri Dec 14, 2012 10:26 am
Forum: Volume 7 (700-799)
Topic: 784 - Maze Exploration
Replies: 21
Views: 7696

Re: 784 - Maze Exploration

Thank you for your reply. I got ac. But what is the problem with fflush(stdin)?
by Sabiha_Fancy
Sat Dec 08, 2012 4:10 pm
Forum: Volume 7 (700-799)
Topic: 784 - Maze Exploration
Replies: 21
Views: 7696

Re: 784 - Maze Exploration

I am getting WA for a long time.But unable to find error. If anyone help i will be glad. #include<stdio.h> #include<stdlib.h> char maze[100][100]; void floodFill(int start_row,int start_col); int main() { int no_of_maze,i,j,start_row,start_col,k,flag; scanf("%d",&no_of_maze); fflush(stdin); for(i=0;...
by Sabiha_Fancy
Sat Dec 08, 2012 4:07 pm
Forum: Volume 1 (100-199)
Topic: 140 - Bandwidth
Replies: 49
Views: 7300

Re: 140 - bandwith

I am getting wrong answer for this problem. But i can't catch the error with my code. If anyone help i will be glad. #include<stdio.h> #include<stdlib.h> #include<string.h> int flag[27],stock[10],order[10]; int graph[27][27]; int count,max,min_value,max_value; void bandwidth() { int i,j,temp,f; for(...
by Sabiha_Fancy
Sat Dec 08, 2012 9:10 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 29844

Re: 488 - Triangle Wave

Thank you for your reply
by Sabiha_Fancy
Mon Sep 10, 2012 12:42 pm
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 14122

Re: 489 - Hangman Judge (WA)

I am getting wrong answer each time i submit it. Can anyone help me to understand the problem? I tried to find out the problem but failed. here is my code: #include<stdio.h> #include<string.h> #include<stdlib.h> #define SIZE 1000 int main() { int n,hangman,success,len,count,flag,i,hang_flag; char so...
by Sabiha_Fancy
Sat Sep 08, 2012 12:33 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 29844

Re: 488 - Triangle Wave

I am getting wrong answere each time i submit it. I can't find the error. Please help me #include<stdio.h> int main() { int n,f,a,i,j,k,l,m; scanf("%d",&n); printf("\n"); for(i=0; i<n; ++i) { scanf("%d %d",&a,&f); if(a==0 || f==0) { printf("0\n"); if(i<n-1) printf("\n"); continue; } if(i>0) printf("...
by Sabiha_Fancy
Fri Sep 07, 2012 8:53 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10056

445 Marvelous Mazes

Each time i submit the solution of this problem i am getting runtime error. If anyone would help me to find my error i will be glad. here is my code #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char row[135]; int sum,flag,len,i,j; flag = 0; while(gets(row)) { len = strlen(row...
by Sabiha_Fancy
Tue Jul 17, 2012 9:52 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 37205

Re: 101-Blocks Problem

Thank you
by Sabiha_Fancy
Mon Jul 16, 2012 3:52 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 37205

101-Blocks Problem

I am getting wrong answer each time i tried to submit it. If any one kindly help me to find out the problem i will be glad. Here is my code #include<stdio.h> #include<malloc.h> #include<string.h> #include<stdlib.h> #define SIZE 25 int table[SIZE]; void createlist(int n); void move_onto(int box1,int ...

Go to advanced search