Code Festival B Union Find by I., S.(ad hoc)

P=:{."{Q=:}.do;._2(1!:1)3
wd@>NO`YES{~*/"{P#Q<2++/\P<*/"{Q<2+2e4

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page