fork download
  1. # From www.speedsolving.com/forum/showthread.php?52290-Move-Counts-From-TNoodle-Scrambles&p=1066981&viewfull=1#post1066981
  2. PingSkills = '''U' 101,695
  3. R' 79,586
  4. R 77,804
  5. U2 75,246
  6. F 67,736
  7. R2 53,380
  8. F' 43,326
  9. U 42,140
  10. F2 9,087'''.replace(',', '').splitlines()
  11.  
  12. # From www.jaapsch.net/puzzles/cube2.htm#numpos
  13. Jaap = '''0 1 1
  14. 1 6 6
  15. 2 3 24 27
  16. 3 24 96 120
  17. 4 6 144 384 534
  18. 5 72 768 1,416 2,256
  19. 6 9 564 3,608 4,788 8,969
  20. 7 126 3,600 15,072 14,260 33,058
  21. 8 5 1,248 18,996 57,120 36,780 114,149
  22. 9 120 9,480 85,548 195,400 69,960 360,508
  23. 10 1,728 55,548 341,604 487,724 43,984 930,588
  24. 11 72 14,016 238,920 841,500 256,248 96 1,350,852
  25. 12 1,032 56,440 455,588 268,532 944 782,536
  26. 13 12 928 32,968 54,876 1,496 90,280
  27. 14 8 160 108 276'''.replace(',', '').splitlines()
  28.  
  29. print(sum((1 + ('2' in move)) * int(ctr)
  30. for p in PingSkills
  31. for move, ctr in [p.split()])
  32. / 50000)
  33.  
  34. print(sum((moves if moves >= 11 else (12 - moves % 2)) * ctr[-1] / 3674160
  35. for j in Jaap
  36. for moves, *ctr in [map(int, j.split())]))
  37.  
Success #stdin #stdout 0.02s 8688KB
stdin
Standard input is empty
stdout
13.75426
11.54929344394365