1、文件的外部读入
2、快读快写
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
记得out.write();之后要out.flush();
3、其他算法
图论:
DFS(Depth First Search)深度优先搜索:栈、回溯(看情况需剪枝),无最短路性质
全排列(康托展开,逆康托展开)
BFS(Breadth First Search)宽(广)度优先搜索:队列、层级、有最短路性质