Search found 11 matches

by shatil_cse
Fri Nov 30, 2012 8:54 pm
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44438

Re: 11340 - Newspaper

Please help me.....I can't find any wrong in my code #include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { char str[10001],c; long long i,j,k,l,m,n; double x; scanf("%lld",&l); for(j=1;j<=l;j++) { int value[500]={0}; scanf("%lld",&m); for(i=1;i<=m;i++) { getchar();...
by shatil_cse
Sat May 12, 2012 7:57 pm
Forum: Volume 3 (300-399)
Topic: 336 - A Node Too Far
Replies: 121
Views: 40809

Re: 336 WA

WA !!!!!! please help me.......... #include<stdio.h> int a,t,front,rear,level,nc,q[100000],i,j,k,l,m,n,x[10000][10000],y[10000],z[100000],state[10000]; int main() { scanf("%d",&nc); for(l=1;nc!=0;l+=j-1) { for(i=0;i<10000;i++) x[i][0]=1; t=0; for(i=1;i<=nc;i++) { scanf("%d%d",&m,&n); //I have store ...
by shatil_cse
Thu May 03, 2012 10:14 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23788

Re: 615 - Is It A Tree?

Instead of a linear search for each node, you could use a c++ map. You may need to change the way you store the edges to enable a search to make sure all nodes are reachable from the root. thanks Actually I don't have knowledge about c++ map . But I got accepted by using a array which contains the ...
by shatil_cse
Thu May 03, 2012 5:13 pm
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 18342

Re: 412 - Some spacial input-output for 412 program

brianfry713 wrote:On my machine your code prints 0.000000 for the first sample input. Your printf is using %Lf or long double, but sqrt returns a %lf or double.
Oh got AC ........
So thanks bosssssss
by shatil_cse
Wed May 02, 2012 7:34 pm
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 18342

Re: 412 - Some spacial input-output for 412 program

please help me ....
don't know why WA!!!!!!!!!!

Code: Select all

//code removed after AC
by shatil_cse
Wed May 02, 2012 7:29 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23788

Re: 615 - Is It A Tree?

brianfry713 wrote:Input:
1 2 3 3 0 0
-1 -1

AC Output:
Case 1 is not a tree.
U are really a great helper .
I got my mistakes but when I modified my code I got TLE .............
I think the process I chose is not good for this problem .
by shatil_cse
Tue May 01, 2012 10:37 am
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23788

615 - Is It A Tree?

why WA ?
I have tried for many inputs which gives correct ans ...
I can't find those inputs which gives WA ..

Code: Select all

//code removed 
by shatil_cse
Fri Apr 13, 2012 8:39 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39828

Re: 10424 - Love Calculator

brianfry713 wrote:Doesn't match the sample I/O.
thanks for the REPLY .
I have got acc.
by shatil_cse
Sat Apr 07, 2012 7:31 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39828

Re: 10424 - Love Calculator

please help me ............
Why WA????????????
by shatil_cse
Sat Apr 07, 2012 6:38 pm
Forum: Volume 110 (11000-11099)
Topic: 11015 - 05-2 Rendezvous
Replies: 48
Views: 17136

Re: 11015 - 05-2 Rendezvous

brianfry713 wrote:Floyd–Warshall should use n instead of m.
I have got AC.
thanks a lot for ur kind reply
by shatil_cse
Thu Apr 05, 2012 8:51 pm
Forum: Volume 110 (11000-11099)
Topic: 11015 - 05-2 Rendezvous
Replies: 48
Views: 17136

Re: 11015 - 05-2 Rendezvous

got AC......

Go to advanced search