intmain() { int t; scanf("%d", &t); while (t--) { int n; int sum = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { int r; scanf("%d", &r); if (r == 1 || r == 3) sum++; } printf("%d\n", sum); } }
intmain() { int t; scanf("%d", &t); while (t--) { int a, b, c; scanf("%d%d%d", &a, &b, &c); for (int i = 1; i <= a - c + 1; i++) printf("1"); for (int i = 1; i <= c - 1; i++) printf("0"); printf(" "); printf("1"); for (int i = 1; i <= b - 1; i++) printf("0"); printf("\n"); } return0; }