
Search found 10 matches
- Mon Nov 08, 2010 8:12 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11883 - Repairing a Road
- Replies: 6
- Views: 2983
Re: 11883
I solved this problem using Dijkstra and Differentiation..... 

- Tue Nov 02, 2010 6:09 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11883 - Repairing a Road
- Replies: 6
- Views: 2983
Re: 11883
After a quick overview i found a bug to your problem. you take the input N and R and instead of taking R roads you are taking N roads of information. However if you correct this i think you will get tle....... In the warshall() function u used a loop for( double x = 0.00; x <= v[z][l]; x += eps ) wh...
- Sun Oct 31, 2010 3:21 am
- Forum: Volume 118 (11800-11899)
- Topic: 11888 - Abnormal 89's
- Replies: 11
- Views: 6533
11888 - Abnormal 89's
Any idea how to solve this problem??
Thanks in advance.
Thanks in advance.
- Sat Jan 30, 2010 4:39 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11760 - Brother Arif, Please feed us!
- Replies: 15
- Views: 4604
Re: 11760(brother arif please feed us!) Wrong Answer
hi nayimsust, i checked your code.just use memset or initialize ur mat[][] variable before your while loop and u will be ok.
And try to do simple codes.

And try to do simple codes.


- Thu Dec 31, 2009 6:06 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11624 - Fire!
- Replies: 54
- Views: 16361
Re: 11624 - Fire!
hi everyone,i am getting run time error a lot in this prob. could anyone check my code to tell the cause of wa. //code here #include<stdio.h> #include<stdlib.h> #define inf 100000 int fire[1005][1005],min; char input[1005][1005]; int row,col,que[1000005][3],r[]={0,0,-1,1},c[]={-1,1,0,0}; void BFS(in...
- Thu Dec 17, 2009 9:11 am
- Forum: Volume 117 (11700-11799)
- Topic: 11724 - Evaluate the Expression
- Replies: 1
- Views: 1908
11724 - Evaluate the Expression
hi everyone, i m getting wa
in this problem many times.can anyone give me some critical input outputs.Thnx in advance.

- Tue Aug 25, 2009 9:31 pm
- Forum: Volume 3 (300-399)
- Topic: 352 - The Seasonal War
- Replies: 54
- Views: 15085
352 The Seasonal War WA
hi,could anyone give some input,for that my prog goes wrong.Thnx in advance. #include<stdio.h> #include<string.h> int main() { int n,i,j,total,used[30][30],flag,num=1,max,len; char input[30][30]; while(scanf("%d",&n)==1) { for(i=0,max=0;i<n;i++) { scanf("%s",input ); len=strl...
- Sat May 30, 2009 9:14 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 43913
10062 - Tell Me the Frequencies!
i m getting wa wa wa! could anyone check and tell my errors. here is my code- #include<stdio.h> #include<string.h> #include<ctype.h> int main() { int value[258],ascii[258],frq[130],i,j,k,tmp,start=0,len; char input[1000]; while(gets(input)!=NULL) { if(start) printf("\n"); start=1; for(i=0;...
- Wed May 20, 2009 9:29 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11608 - No Problem
- Replies: 25
- Views: 10721
Re: 11608 - No Problem
hi MRH thanks for ur help. 

- Tue May 19, 2009 9:57 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11608 - No Problem
- Replies: 25
- Views: 10721
11608 - No Problem-getting wa ??why??
hi,i m getting wa in this input.i dont understand my fault.could anybody check my prog. #include<stdio.h> int main() { int a[13],n,total[14],k=1,i; bool flag[13]; while(scanf("%d",&n)==1) { if(n<0) break; total[1]=n; for(i=1;i<13;i++) { scanf("%d",&a ); total[i+1]=total +...