import sequtils,strutils,algorithm,math,sugar,macros,strformat import tables proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "" .} proc scan(): int = var minus = false while true: var k = getchar_unlocked() if k == '-' : minus = true elif k < '0' or k > '9': break else: result = 10 * result + k.ord - '0'.ord if minus: result *= -1 template times*(n:int,body) = (for _ in 0..= 0 and x-i <= 10_0000 and A[i] > 0 and A[x-i] > 0: ans += A[i] * A[x-i] echo ans