University stuff.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324
  1. class Main {
  2. public static void main(String[] args) {
  3. if (args.length != 1) {
  4. System.out.println("Usage: java Main <n>");
  5. System.exit(1);
  6. }
  7. NPunkter17 points = new NPunkter17(Integer.parseInt(args[0]));
  8. Oblig4 seq = new Sequential(points);
  9. Oblig4 par = new Parallel(points);
  10. Timer ts = new Timer().start();
  11. seq.solve();
  12. ts.end();
  13. System.out.println("Sequential: "+ts.prettyTime());
  14. Timer tp = new Timer().start();
  15. par.solve();
  16. tp.end();
  17. System.out.println("Parallel: "+tp.prettySpeedup(ts));
  18. seq.draw();
  19. }
  20. }