Advertisement
PikMike

Untitled

Apr 11th, 2016
2,767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
J 0.42 KB | None | 0 0
  1. print =: 1!:2&2
  2. read =: 1!:1[3
  3.  
  4. in =. (read-.LF) rplc CR;';'
  5. in =. in rplc '.';'g'
  6.  
  7. a=: 3 : 0
  8.  if. y=13 do. 'i'
  9.  else. 'f'
  10.  end.
  11. )
  12.  
  13. s =. (> 2 { (;: in))
  14. t =. (> 2 { (;: in)) rplc 'g';'h'
  15.  
  16. tp =. a im =. $ (s compare t)
  17.  
  18.  
  19. wd =. (> 0 { (;: in))
  20.  
  21. up=: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22. ln =. ((# wd) - 1)
  23. tb =. i.ln
  24. tk =. ln $ 1
  25. tbl =. tb + tk
  26.  
  27. ups=.  ((0 { 3 & u: wd) - 97) { up
  28. print > tp, ups, tbl { wd
  29.  
  30. exit ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement