Search found 56 matches

by r.z.
Thu May 27, 2004 7:55 am
Forum: Algorithms
Topic: Bellman-Ford algorithm
Replies: 2
Views: 1838

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.....
by r.z.
Wed Dec 17, 2003 2:48 pm
Forum: Algorithms
Topic: carmichael number
Replies: 1
Views: 1638

carmichael number

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

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++)
{
f[line ...
by r.z.
Mon Nov 17, 2003 1:46 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125724

thanks got accepted
I forgot about '\0'
by r.z.
Sun Nov 16, 2003 3:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125724

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);
freopen ...
by r.z.
Thu Nov 13, 2003 3:55 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44513

thanks
got acc :wink:
by r.z.
Thu Nov 13, 2003 3:43 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 51223

thanks

I got acc :wink:
by r.z.
Wed Nov 12, 2003 6:18 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 51223

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 ...
by r.z.
Wed Nov 12, 2003 4:53 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44513

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 ...
by r.z.
Wed Nov 12, 2003 1:38 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44513

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
by r.z.
Wed Sep 03, 2003 9:06 am
Forum: Off topic (General chit-chat)
Topic: A New Kind of Science
Replies: 1
Views: 2256

A New Kind of Science

Has anyone here read the book?
what is it about?
is it good?
I'm just wondering about what's in it
by r.z.
Sun Jul 13, 2003 4:29 am
Forum: Algorithms
Topic: Big Numbers
Replies: 5
Views: 3196

ok thanks a lot :)

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

thanks for your help :)

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

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

please help me with my problem here......
by r.z.
Sat Jul 05, 2003 3:35 am
Forum: Other words
Topic: I can't download the problems from this website!!
Replies: 12
Views: 3157

I still can't download the problems......
by r.z.
Fri Jul 04, 2003 6:29 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 51720

Oh I didn't read the part that emirp = (prime != prime reversed)

thanks I finally got accepted :wink:

Go to advanced search