#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. import sys # uncomment the two following lines if you want to read/write from files # sys.stdin = open('input.txt') # sys.stdout = open('output.txt', 'w') T = int(input().strip()) for test in range(1, T+1): input() Q = int(input().strip()) F = [0 for i in range(Q)] C = ['-' for i in range(Q)] K = [0 for i in range(Q)] for i in range(Q): F[i], C[i], K[i] = [f(v) for f, v in zip([int, str, int], input().strip().split())] A = [0 for i in range(Q)] # INSERT YOUR CODE HERE for i in range(Q): print(A[i], end=' ') print() sys.stdout.close()