Advertisement
Guest User

Untitled

a guest
Dec 6th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. FileRead, answStr, % A_ScriptDir "\d6.txt"
  4.  
  5. countA := []
  6.  
  7. count := 0
  8.  
  9. for i, j in StrSplit(answStr, "`r`n`r`n") {
  10.     countA[i] := {}
  11.     for k, l in StrSplit(j, "`r`n") {
  12.         for m, n in StrSplit(l) {
  13.             if !countA[i][n]
  14.                 count += 1
  15.             countA[i][n] := 1
  16.         }
  17.     }
  18. }
  19.  
  20. Clipboard := count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement