thank's i also got the formulla...
but need to know the derivetion....
any help ?????
Thank's in Advance
Rocky
Search found 124 matches
- Sun Jul 16, 2006 2:55 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11028 - Sum of Product
- Replies: 24
- Views: 14560
- 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.....
do you change it....
Good Luck
Rocky
Code: Select all
printf ("%d %d %d\n",n1,n2,max); //"\n" after each output...
Good Luck
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....
Good Luck
Rocky
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);
Rocky
- Sat Jul 15, 2006 8:50 am
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 51963
- 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:
output:
Good Luck
Rocky
try this..
Input:
Code: Select all
20 20
9999 9999
1 9999
340 3000
3000 340
500 101
1 1
9999 9998
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
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
thank's....
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
Rocky
- Tue Dec 13, 2005 11:46 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 147468
- Fri Dec 09, 2005 8:17 am
- Forum: Off topic (General chit-chat)
- Topic: Finding recurrence relation
- Replies: 2
- Views: 2197
- 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...
- 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...
GOOD LUCK
Rocky
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
Rocky
- Fri Dec 09, 2005 7:18 am
- Forum: Volume 103 (10300-10399)
- Topic: 10344 - 23 out of 5
- Replies: 81
- Views: 36739
- 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
but why it is valid because the number will be positive...
Thank's for Reply
Rocky
- Thu Dec 08, 2005 2:05 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10344 - 23 out of 5
- Replies: 81
- Views: 36739
- 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
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