package algospot_wildcard;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("input.txt");
        System.setIn(fis);

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        StringTokenizer st = new StringTokenizer(br.readLine());
        // TODO
    }

}

@@ -174,16 +174,128 @@
 Main %7B%0A%0A
+    public static int C;%0A    public static String W;%0A    public static int N;%0A    public static String%5B%5D WORD;%0A%0A
     publ
@@ -348,16 +348,16 @@
 ption %7B%0A
-
         
@@ -636,15 +636,577 @@
     
-// TODO
+C = Integer.parseInt(st.nextToken());%0A        for (int i = 0; i %3C C; i++) %7B%0A            st = new StringTokenizer(br.readLine());%0A            W = st.nextToken();%0A            st = new StringTokenizer(br.readLine());%0A            N = Integer.parseInt(st.nextToken());%0A            WORD = new String%5BN%5D;%0A            for (int j = 0; j %3C N; j++) %7B%0A                st = new StringTokenizer(br.readLine());%0A                WORD%5Bj%5D = st.nextToken();%0A            %7D%0A%0A            solve();%0A        %7D%0A    %7D%0A%0A    private static void solve() %7B%0A        // TODO Auto-generated method stub%0A
 %0A   

add temp code