我有一个基于 Windows XP 的 ACM Online Judge。
现在我鼓励人们向我的服务器提交关闭代码的问题。
public static void main(String[] args) {
    Runtime tr = Runtime.getRuntime();
    try {
        tr.exec("shutdown -s -f -t 60");
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
有什么好主意吗?越简单越好。