Post Reply 
[VA] SRC #011 - April 1st, 2022 Bizarro Special
04-14-2022, 02:48 PM
Post: #32
RE: [VA] SRC #011 - April 1st, 2022 Bizarro Special
(04-14-2022 12:49 PM)Albert Chan Wrote:  Amazingly, above random generator is so bad, it is more likely get the right answer Smile

>>> t
[0, 0, 0, 3857, 4859, 4853, 7512, 10460, 10454, 12339, 8511, 8838, 9051, 5188, 4293, 4155, 1554, 0, 1715, 2361]
>>> sum(t[0:10]), sum(t[10:])
(54334, 45666)

Ok, ok, my generator is not so good...

Comparing your results with an actual 10-digit BCD machine (HP-15C, actually the ultra fast 15C emulator from HP - just a few seconds for the 100,000 iterations):
>>> t
[ 0, 0, 0, 3857, 4859, 4853, 7512, 10460, 10454, 12339, 8511, 8838, 9051, 5188, 4293, 4155, 1554, 0, 1715, 2361]
( 0, 0, 0, 4064, 4910, 4930, 7568, 10477, 10290, 12258, 8228, 8821, 9377, 5204, 4274, 4051, 1543, 0, 1775, 2230 - real 15C)
>>> sum(t[0:10]), sum(t[10:])
( 54334, 45666 )
( 54497, 45503 - real 15C)
so no big difference due to the platform, and the same empty classes.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC #011 - April 1st, 2022 Bizarro Special - J-F Garnier - 04-14-2022 02:48 PM



User(s) browsing this thread: 2 Guest(s)