public static void main(String[] args) throws Exception {
		ArchiveParser archiveParser = new ArchiveParser();
		List<CommentStats> commentList = archiveParser.getCommentList();
		List<ProblemStats> problemStatsList = archiveParser.getProblemStatsList();

		Comparator<ProblemStats> s = new Comparator<ProblemStats>() {
			@Override
			public int compare(ProblemStats paramT1, ProblemStats paramT2) {
				int to = -paramT1.getSRMNumber().compareTo(paramT2.getSRMNumber());
				if (to == 0) {
					return paramT1.getDiv2Level() > paramT2.getDiv2Level() ? 1 : -1;
				}
				return to;
			}
		};
		Collections.sort(problemStatsList, s);

		File dir = new File("src");
		File[] files = dir.listFiles();

		PrintStream printStream = new PrintStream(new File("README.md"));
		printStream.println("ClassName|SRM|Div|Level| コメント | 自己評価|ソースコード(Java)|ソースコード(Python)");
		printStream.println(":--|:--|:--|:--| :-- | :--|:--|:--|");

		for (ProblemStats problemStats : problemStatsList) {
			if (problemStats.getContestName().contains("SRM")) {
				if (problemStats.getFieldString(ProblemStats.COLUMN_DIVISION).contains("2")) {
					printStream.println(problemStats.toMDString(commentList, files));
				}
			}
		}
		printStream.close();
	}