fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Scanner sc=new Scanner("the quick brown fox jumps over the lazy dog");
  13. String s=sc.nextLine();
  14. int len=s.length();
  15. //System.out.println(s); - the
  16. int i;
  17. char c;
  18. boolean arr[] = new boolean[26];
  19. s = s.replace(" ","");
  20. boolean success = true;
  21. for(c = 'a';c <= 'z'; c++)
  22. {
  23. if(!s.contains(String.valueOf(c)))
  24. {
  25. System.out.println(String.valueOf(c));
  26. success = false;
  27. break;
  28. }
  29. }
  30. if(success)
  31. {
  32. System.out.println("Special");
  33. }
  34. else System.out.println("Not Special");
  35. }
  36. }
Success #stdin #stdout 0.15s 321344KB
stdin
Standard input is empty
stdout
Special