Little tips

While solving interactive problems, we should

  1. Let “ask” function do the query
  2. Never forget cout.flush(), even you have used endl