## Search found 56 matches

Thu May 27, 2004 7:55 am
Forum: Algorithms
Topic: Bellman-Ford algorithm
Replies: 2
Views: 1543

### Bellman-Ford algorithm

I'm new with graph algoithm and I just start reading about graphs

but I'm al little bit confused about Bellman-Ford algorithm
I still can't understand how it works.....

can anyone help me.....
Wed Dec 17, 2003 2:48 pm
Forum: Algorithms
Topic: carmichael number
Replies: 1
Views: 1408

### carmichael number

what formula should I use to generate carmichael numbers?
Sat Nov 22, 2003 7:40 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 42924

### 10062

what's wrong with my code? [c] #include<stdio.h> void main() { int f[256]; char line[1001]; int i,min,idx; int ctr; /* freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); */ while(gets(line)!=NULL) { for(i=0;i<256;i++) { f =0; } for(i=0;line !='\0';i++...
Mon Nov 17, 2003 1:46 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 79270
thanks got accepted
Sun Nov 16, 2003 3:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 79270
I still don't know why is my code resulting WA the sampe input and output is correct, maybe I missed something? [c] #include<stdio.h> #include<string.h> void main() { int n,m; int i,j; int k,l; int ctr; int num; char mat[100][100]; num=1; /* freopen("input.txt","r",stdin); freope...
Thu Nov 13, 2003 3:55 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 24305
thanks
got acc
Thu Nov 13, 2003 3:43 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 35119
thanks

I got acc
Wed Nov 12, 2003 6:18 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 35119

### 10340 RTE

why is my code resulting RTE (SISVG)? [c]#include<stdio.h> #include<string.h> void main() { char a[10000]; char b[10000]; int i,j; int len; while(scanf("%s %s",a,b)!=EOF) { j=0; len=strlen(a); for(i=0;b !='\0';i++) { if(j==len) { break; } if(b ==a[j]) { j++; } } if(j==len) printf("Yes...
Wed Nov 12, 2003 4:53 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 24305
still generating the wrong output it generates Max hits: 0 -858993460 Max hits: 4 1 2 3 5 Max hits: 3 7 18 45 Max hits: 2 1 2 Max hits: 4 1 4 5 6 instead of Max hits: 4 1 2 3 5 Max hits: 3 7 18 45 Max hits: 2 1 2 Max hits: 4 1 4 5 6 Max hits: 3 1 3 5 I still have problem with the multiple input.....
Wed Nov 12, 2003 1:38 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 24305

### 497 - wrong input maybe?

I have tested my code using various kinds of sample inputs but it still WA

but then I look the problem is multiple input type

so do I have to input the number of test case first?
and if I do, what input that shows the end of input for one test case?

thanks before
Wed Sep 03, 2003 9:06 am
Forum: Off topic (General chit-chat)
Topic: A New Kind of Science
Replies: 1
Views: 1926

### A New Kind of Science

Has anyone here read the book?
is it good?
I'm just wondering about what's in it
Sun Jul 13, 2003 4:29 am
Forum: Algorithms
Topic: Big Numbers
Replies: 5
Views: 2757
ok thanks a lot

then I can use a string then seperate it into a struct which has int decimal, int integer,int sign.

I have to make a program that can calculate 5000 digits number
Sat Jul 12, 2003 2:31 pm
Forum: Algorithms
Topic: Big Numbers
Replies: 5
Views: 2757

### Big Numbers

do you know the algorithm how to store a big number in an array of char
and then calculate it?

I know how to do it for addition and substraction but for multiplication I still can't find the right way.....

the number can be floating type

like : 1234.52

Sat Jul 05, 2003 3:35 am
Forum: Other words