fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.net.URL;import java.net.HttpURLConnection;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. String[] chars = {
  11. "a", "b", "c", "d", "e",
  12. "f", "g", "h", "i", "j",
  13. "k", "l", "m", "n", "o",
  14. "p", "q", "r", "s", "t",
  15. "u", "v", "w", "x", "y",
  16. "z"};
  17. String word;
  18. for (String a: chars){
  19. for (String b: chars){
  20. for (String c: chars){
  21. for (String d: chars){
  22. word = a + b + c + d;
  23.  
  24. URL url = new URL("https://w...content-available-to-author-only...e.edu/homes/bxd/" + word + ".html");
  25. HttpURLConnection http = (HttpURLConnection)url.openConnection();
  26. int statusCode = http.getResponseCode();
  27. if (statusCode == 304){
  28. System.out.println("Quiz Links: https://w...content-available-to-author-only...e.edu/homes/bxd/" + word + ".html");
  29. }
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
Time limit exceeded #stdin #stdout #stderr 5s 4456448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "SeedGenerator Thread" java.lang.OutOfMemoryError: unable to create new native thread
	at java.lang.Thread.start0(Native Method)
	at java.lang.Thread.start(Thread.java:714)
	at sun.security.provider.SeedGenerator$ThreadedSeedGenerator.run(SeedGenerator.java:350)
	at java.lang.Thread.run(Thread.java:745)