Search found 23 matches

by jainal cse du
Sun Sep 14, 2008 10:25 pm
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 133
Views: 46604

Re: 459 - Graph Connectivity

Thanks MAK & Helloneo.
Now I got AC.
by jainal cse du
Sun Sep 14, 2008 6:27 pm
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 133
Views: 46604

Re: 459 - Graph Connectivity

I am tired with this stupid prob.
please someone checks my code.
I don't understand why OJ gives WA.

Code: Select all

Removed After AC.
by jainal cse du
Sun Jul 27, 2008 3:25 pm
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 133
Views: 46604

Re: 459 - WA

#include <stdio.h> #include <string.h> #include <ctype.h> #include <queue> #define WHITE 0 #define GRAY 1 #define BLACK 2 using namespace std; int graph[30][30]; int color[30]; void bfs(int source,int V) { int i,u; queue<int>Q; color[source] = GRAY; Q.push(source); while(!Q.empty()) { u = Q.front()...
by jainal cse du
Thu Mar 20, 2008 12:53 pm
Forum: Volume 103 (10300-10399)
Topic: 10364 - Square
Replies: 47
Views: 20732

Please help me.I could not understand why it is WA? #include <stdio.h> int input[25]; int expectedSum,count,stick; void comb(int now, int index,int sum) { int i; if(sum == expectedSum) { count++; return; } else if(count == 4) return; else if(sum > expectedSum) return; else { for(i = now; i < stick;i...
by jainal cse du
Tue Aug 07, 2007 12:39 pm
Forum: Volume 103 (10300-10399)
Topic: 10347 - Medians
Replies: 32
Views: 17626

Getting WA.Needs help pls.. #include <stdio.h> #include <math.h> int main() { double a,b,c,temp,area,s; while(scanf("%lf %lf %lf",&a,&b,&c) == 3) { s = (a + b + c) / 2.0; temp = sqrt(s * (s - a) * (s - b) * (s - b)); area = (temp * 4.0 ) / 3.0; if(area <= 0) area = -1.000; prin...
by jainal cse du
Wed Aug 01, 2007 12:16 pm
Forum: Volume 111 (11100-11199)
Topic: 11105 - Semi-prime H-numbers
Replies: 16
Views: 16620

Code: Select all

Yes, Now I got AC.
code removed
by jainal cse du
Tue Jul 24, 2007 3:57 pm
Forum: Volume 105 (10500-10599)
Topic: 10539 - Almost Prime Numbers
Replies: 44
Views: 30834

[Removed]
by jainal cse du
Tue Jul 24, 2007 8:52 am
Forum: Volume 106 (10600-10699)
Topic: 10699 - Count the factors
Replies: 27
Views: 15477

Code: Select all

please give me what is the different prime factors for following input:

289384
930887
692778
636916
747794
238336
885387
760493
516650
641422

by jainal cse du
Sun Jul 22, 2007 2:40 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 33430

Hi Newton,you have to count only minimum exchange operations. So,replace it . for(i = 0;i < num-1; i++) { for(j = i+1;j < num;j++) { if(array[i] > array[j]) { cnt++; tmp = array[i]; array[i] = array[j]; array[j] = tmp; } } } By following cnt = 0; for(i = 0;i < num; i++) { for(j = i+1;j < num;j++) { ...
by jainal cse du
Sat Jul 21, 2007 3:57 pm
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 20140

Thanx Abdulla.
Now I have got Accepted.
by jainal cse du
Thu Jul 19, 2007 10:54 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 20140

Can anybody tell me how I escape from Compile Error.

Here are the compiler error messages:

05754547_24.c: In function `int main()':
05754547_24.c:44: implicit declaration of function `int atof(...)'

--

Code: Select all

Code removed after AC.
[

Thanx
by jainal cse du
Mon Jun 04, 2007 11:47 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 147637

Thanx,
I have got AC..... :D
by jainal cse du
Sun May 27, 2007 12:49 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 147637

I don't understand Why Judge giving me WA.
Help me please

Code: Select all


removed after AC

by jainal cse du
Wed Mar 28, 2007 2:28 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 45219

Why judge response WA,
I need help

Code: Select all

Code removed after AC.
by jainal cse du
Wed Mar 28, 2007 1:10 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 67766


Only for this I am getting WA.
Now I got AC.
Thanks for reply.

Go to advanced search