fork download
  1. #module
  2. #deffunc calc_r array result, array work, int degit, var result_num, local value, local count
  3. if degit>=10 {
  4. repeat 10
  5. if work.cnt {
  6. value=10.0*value+(9-cnt)
  7. count++
  8. }
  9. loop
  10. if count>=2 {
  11. result.result_num=value
  12. result_num++
  13. }
  14. return
  15. }
  16. work.degit=0
  17. calc_r result, work, degit+1, result_num
  18. work.degit=1
  19. calc_r result, work, degit+1, result_num
  20. return
  21.  
  22. #deffunc calc array result, local result_num, local work
  23. ddim result, 1
  24. dim work, 10
  25. calc_r result, work, 0, result_num
  26. return result_num
  27. #global
  28.  
  29. calc result
  30.  
  31. buf=""
  32. repeat stat
  33. buf+=strf("%.0f\n", result.cnt)
  34. loop
  35.  
  36. mesbox buf, ginfo_sx, ginfo_sy
  37.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty