#include int main(void) { int scan;//scanf警告用 int ans; int i, j; int t,n,a; scan=scanf("%d",&t); for(j=0; j