fork download
  1. f=lambda x:[[i,(20*x[x.find(i):x.find('_')].count('\n'))**.5]for i in x if i.isdigit()]
  2. print(f("""
  3.  
  4. 1 5 2
  5. 6 3
  6. 4
  7. 7
  8.  
  9. __________________________"""))
  10. print(f("""
  11.  
  12. 1 5 2
  13. 3
  14. 4
  15.  
  16.  
  17. __________________________
  18.  
  19. """))
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
[['1', 10.0], ['5', 10.0], ['2', 10.0], ['6', 8.94427190999916], ['3', 8.94427190999916], ['4', 7.745966692414834], ['7', 6.324555320336759]]
[['1', 10.0], ['5', 10.0], ['2', 10.0], ['3', 8.94427190999916], ['4', 7.745966692414834]]