Search found 42 matches

by rakeb
Mon Nov 11, 2002 12:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 75642

10038 Jolly Jumpers I am confused

i'm confused with this problem. A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1 what is this line meaning ? The absolute difference of succisive elements take on all the values 1 to n-1. S...
by rakeb
Thu Nov 07, 2002 7:08 pm
Forum: Volume 103 (10300-10399)
Topic: 10364 - Square
Replies: 47
Views: 14363

I can't understand this problem :cry: . can anybody help me plz?
by rakeb
Thu Nov 07, 2002 6:12 pm
Forum: Volume 103 (10300-10399)
Topic: 10386 - Circles in Triangle
Replies: 5
Views: 2577

well i'v solved this problem by some simple math i.e. i calculated the value of a1 and a2 by doing some math :lol: the eqn for the first triangle is 2cos(60-a1)+1- 4cos(a1)=0 =>2cos(60) cos(a1) + 2sin(60) sin(a1) + 1-4cos(a1) = 0 =>cos(a1) + 2sin(60) sin(a1) + 1 - 4cos(a1) = 0 =>2 * (sqrt(3)/2) sin(...
by rakeb
Sat Sep 21, 2002 1:37 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 13514

10098 Generating Fast, Sorted Permutation

Can anybody give me outpus for

2
aABb
aabb

Thanx
by rakeb
Sun Sep 08, 2002 7:32 pm
Forum: C
Topic: Round up float value
Replies: 5
Views: 2850

i don't want print the round up value i want to assign it in a variable
i.e.
[c]
if(a==4.346)
a=round(4.346); //a will be 4.35

[/c]
is there any way.....
by rakeb
Sun Sep 08, 2002 6:20 pm
Forum: C
Topic: Round up float value
Replies: 5
Views: 2850

Round up float value

is there any function in C to round up float value i.e we can write
4.236 as 4.24 or I have to write it?
by rakeb
Sun Sep 01, 2002 12:14 pm
Forum: Volume 103 (10300-10399)
Topic: 10345 - Cricket/Football Goes Down
Replies: 12
Views: 4762

10345 - Cricket/Football Goes Down

How can i determine r3 in fig-3
by rakeb
Sun Sep 01, 2002 9:59 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 54653

if u get one carry operation the u have to print "1 carry operation." , not - "1 carry operationS." :lol: . i think this is ur mistake
by rakeb
Fri Aug 30, 2002 5:14 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 13514

PLZ help

Now i m facing Runtime Error (SIGXFSZ) :o
by rakeb
Fri Aug 30, 2002 5:00 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 13514

RAKEB

thanx for reply
by rakeb
Fri Aug 30, 2002 3:31 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 13514

10098 - Generating Fast

why Output Limit Exceeded!!! #include<stdio.h> #include<stdlib.h> #include<string.h> long len; char str[11],taken[11],permout[11]; int sfunc(const void *a,const void *b) { return (int)(*((char *) a) - *((char *)b)); } void perm(long lev) { long i; if(lev == len ) { printf("%s\n",permout); return; } ...
by rakeb
Fri Aug 30, 2002 2:55 pm
Forum: Volume 5 (500-599)
Topic: 575 - Skew Binary
Replies: 18
Views: 3565

I think this is much better idea 575

I think this is much better idea #include<stdio.h> #include<string.h> #include<math.h> void main(){ double j; char str[1000]; long l,i,sb=0; while(gets(str)) { l=strlen(str); if(l==1) if(str[0]-'0' == 0 ) break; sb=0; j = double(l); for(i=0;i<l;i++) { sb+=(str -'0')*(pow(2,j)-1); j--; } printf("%ld\...

Go to advanced search