import sequtils,strutils,strscans,algorithm,math,future,macros template get*():string = stdin.readLine() #.strip() macro unpack*(rhs: seq,cnt: static[int]): auto = let t = genSym(); result = quote do:(let `t` = `rhs`;()) for i in 0.." .} let (N,K) = get().split().map(parseInt).unpack(2) var field : array[-501..501,array[-501..501,int]] ene_XYHP = newSeq[tuple[x,y,hp:int32]]() # eneX,eneY,eneHP : array[0..1000001,int32] # seq -> array で 60ms 早くなる(生成コスト?) for n in 0..