Budget Tour

Chocoland in Sample 1: For m=7m = 7m=7 ——— the valid 121212 pairs of cities are (1,1)(1, 1)(1,1), (1,2)(1, 2)(1,2), (1,3)(1, 3)(1,3), (1,4)(1, 4)(1,4), (2,1)(2, 1)(2,1), (2,2)(2, 2)(2,2), (2,4)(2, 4)(2,4), (3,1)(3, 1)(3,1), (3,3)(3, 3)(3,3), (4,1)(4, 1)(4,1), (4,2)(4, 2)(4,2) and (4,4)(4, 4)(4,4).

This is a companion discussion topic for the original entry at https://toph.co/p/budget-tour