|
|
вернуться в форумfor 100 2 1 1 1 1 ..{98 times total}.. 1 1 1 0 ? Edited by author 15.10.2011 17:09 mine 67 32 Any more results? Why does the answer on this test contain only two numbers? I think there should be 100 numbers Edited by author 15.10.2011 18:04 Edited by author 15.10.2011 18:05 other is 0, mine: 51 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I have 50 0 0 0..{99 times}..0 0 0 Is it right? I have 50 0 0 0..{99 times}..0 0 0 Is it right? No. Answer equal 51 0 0 ... {99 times} 0 Answer: 2-100/101=102/101 98*(1-100/101)=98/101 98/101+102/101=200/101 (102/101):(200/101)=(102/101)*(101/200)=102/200 (102/200)*100=102/2=51 PS: But memoring in computer in type double 51 as 51.00000000001 or 50.999999999999999. Because you got 50, when answer 51. Wrong accuracy you got. Don't used double. Used only int, or should add epsilon (0 < epsilon < 1e-12) |
|
|