private static void solve() {
		int[][] res = new int[score.size()][2];
		int j = 0;
		for (Integer team : solved.keySet() ) {
			boolean[] problems = solved.get(team);
			int cant = 0;
			for (int i = 0; i < problems.length; i++) {
				if(problems[i]) {
					score.get(team)[score.get(team).length-1]+= penales.get(team)[i]*20;
					cant++;
				}
			}
			res[j][0] = team;
			res[j][1] = cant;
			j++;
		}
		
		Arrays.sort(res, new Comparator<int[]>() {
			@Override
			public int compare(int[] o1, int[] o2) {
				if( o1[1]>o2[1] || o1[1]<o2[1]) 
					return -(o1[1]-o2[1]);
				else {
					int penalty1 = score.get(o1[0])[score.get(o1[0]).length-1];
					int penalty2 = score.get(o2[0])[score.get(o2[0]).length-1];
					if( penalty1 == penalty2 )
						return (o1[0]-o2[0]);
					else
						return (penalty1-penalty2);
				}
			}
		});
		for (int i = 0; i < res.length; i++) 
			sb.append( (res[i][0]+1)+" "+res[i][1]+" "+score.get(res[i][0])[score.get(res[i][0]).length-1]  ).append("\n");
	}