// URL: https://yukicoder.me/problems/no/733 import std.algorithm, std.array, std.container, std.math, std.range, std.typecons, std.string; version(unittest) {} else void main() { int T; io.getV(T); int N; io.getV(N); int[] t; io.getC(N, t); auto td = new int[](1<