Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 4th, 2012  |  syntax: None  |  size: 0.88 KB  |  hits: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. INPUT 1:
  2. [
  3.     [
  4.         [ ["Armando", "P"], ["Dave", "S"] ],
  5.         [ ["Richard", "R"],  ["Michael", "S"] ],
  6.     ],
  7.     [
  8.         [ ["Allen", "S"], ["Omer", "P"] ],
  9.         [ ["David E.", "R"], ["Richard X.", "P"] ]
  10.     ]
  11. ]
  12.  
  13. OUTPUT: Richard
  14.  
  15. INPUT 2:
  16. [[[[[["Aridatha", "R"], ["Krystalle", "S"]], [["Lynnette", "R"], ["Nertie", "R"]]], [[["Quinn", "P"], ["Lucy", "P"]], [["Margo", "R"], ["Daffi", "R"]]]], [[[["Cicely", "P"], ["Silvana", "S"]], [["Ealasaid", "R"], ["Robina", "P"]]], [[["Jenelle", "S"], ["Selinda", "P"]], [["Stormi", "P"], ["Merridie", "R"]]]]], [[[[["Latisha", "R"], ["Nicola", "P"]], [["Marji", "P"], ["Wren", "P"]]], [[["Babette", "S"], ["Monika", "R"]], [["Mollie", "S"], ["Staci", "P"]]]], [[[["Cecilla", "R"], ["Robin", "S"]], [["Bendite", "R"], ["Carrie", "S"]]], [[["Bernetta", "P"], ["Wanids", "R"]], [["Viki", "S"], ["Hope", "P"]]]]]]
  17.  
  18. OUTPUT: Silvana