import java.io.BufferedReader; import java.io.IOException; import java.util.HashMap; public class Main { public BufferedReader br; /** * メイン処理 * @throws IOException */ public void Proc() throws IOException { HashMap map = new HashMap(); int minCount = Integer.MAX_VALUE; for(int i=0; i<=9; i++) { System.out.println(this.DupChar(10, "" + i)); String[] ret = br.readLine().split(" "); int cnt = Integer.parseInt(ret[0]); if(cnt == 10) { return; } map.put(i, cnt); minCount = Math.min(minCount, cnt); } Integer[] ans = new Integer[10]; if(minCount == 0) { int umeNum = -1; for(Integer key : map.keySet()) { if(map.get(key).intValue() == 0) { umeNum = key.intValue(); break; } } for(int i=0; i<=9; i++) { if(map.get(i).intValue() == 0) { continue; } for(int j=0; j