Search found 124 matches

by Rocky
Sun Jul 16, 2006 2:55 pm
Forum: Volume 110 (11000-11099)
Topic: 11028 - Sum of Product
Replies: 24
Views: 14560

thank's..

thank's i also got the formulla...
but need to know the derivetion....
any help ?????

Thank's in Advance
Rocky
by Rocky
Sun Jul 16, 2006 2:32 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 293330

i aslo change some thing i add a new line charecter after the output.....

Code: Select all

printf ("%d %d %d\n",n1,n2,max); //"\n" after each output...
do you change it....

Good Luck
Rocky
by Rocky
Sun Jul 16, 2006 7:37 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 293330

for input youyr code is ok but i make some change to your code and gives ok (accc),...
see this....

Code: Select all

max = cycle(0);  //always took the length of 0 as minimum
     for (i=g;i<=f;i++) { 
   l=cycle(i); 
   if (l>max) max=l; 
} 


printf ("%d %d %d\n",n1,n2,max); 

Good Luck
Rocky
by Rocky
Sat Jul 15, 2006 8:50 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 51963

in this problem the order is A,a,B,b......

Rocky
by Rocky
Sat Jul 15, 2006 8:44 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 293330

more i/o....
try this..
Input:

Code: Select all

20 20
9999 9999
1 9999
340 3000
3000 340
500 101
1 1
9999 9998
output:

Code: Select all

20 20 8
9999 9999 92
1 9999 262
340 3000 217
3000 340 217
500 101 144
1 1 1
9999 9998 92
Good Luck
Rocky
by Rocky
Wed Jul 12, 2006 12:27 pm
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 3417

i agree ...

yes ayon is right i agree with him...

thank's....
Rocky
by Rocky
Sun Jan 01, 2006 7:15 am
Forum: Volume 106 (10600-10699)
Topic: 10681 - Teobaldo's Trip
Replies: 44
Views: 16522

Thank's..

Thank's....

Rocky
by Rocky
Tue Dec 13, 2005 11:46 am
Forum: Off topic (General chit-chat)
Topic: I win !!
Replies: 361
Views: 147468

ok you can try..
But winner is.... Me

Thak's
Rocky
by Rocky
Fri Dec 09, 2005 8:17 am
Forum: Off topic (General chit-chat)
Topic: Finding recurrence relation
Replies: 2
Views: 2197

Yeahh that's a nice & interesting book...

Rocky
by Rocky
Fri Dec 09, 2005 7:56 am
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 34680

i get the following output for those input from accepted code.. (x - 3.000)^2 + (y + 2.000)^2 = 5.000^2 x^2 + y^2 - 6.000x + 4.000y - 12.000 = 0 (x - 3.921)^2 + (y - 2.447)^2 = 5.409^2 x^2 + y^2 - 7.842x - 4.895y - 7.895 = 0 (x - 2.500)^2 + (y + 0.000)^2 = 2.500^2 x^2 + y^2 - 5.000x - 0.000y - 0.000...
by Rocky
Fri Dec 09, 2005 7:50 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 106313

some test case for you...

Code: Select all

1 2 3 4 5 6 7 8 9
1000 200 1500 350 5000 1000 1000 2000 13000
5 10 5 20 10 5 10 20 10
60 20 1000 1000 60 20 10000 20 500
20 1000 50 2000 50 500 1500 20 3000
20 1000 50 2000 50 5000 1500 20 300
GOOD LUCK
Rocky
by Rocky
Fri Dec 09, 2005 7:18 am
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36739

Yes ,
i understant that...
But for frist time i missed it.... ok now acc..

Thank's Again
Rocky
by Rocky
Thu Dec 08, 2005 2:10 pm
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36739

acc

Yes Got Acc using the condition (x*-y).....
but why it is valid because the number will be positive...

Thank's for Reply
Rocky
by Rocky
Thu Dec 08, 2005 2:05 pm
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 36739

i got the same output as you get....and WA...any more I/O...
but i read from other thread that some one says that the expression can be (x*-y) is it valid......?? My programme not support it...

Thank's in Advance
Rocky
by Rocky
Wed Dec 07, 2005 3:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10147 - Highways
Replies: 67
Views: 29230

10147 WA..

Hi
I get acc in 10397 but i get wa in 10147...i think both are so simmiler isn't??can any body help me.....

Thank's In Advance
Rocky

Go to advanced search