fork(16) download
  1. class Main
  2. {
  3. public static void main(String[] args)
  4. {
  5. boolean[] george = {false, true};
  6. for (boolean a : george)
  7. {
  8. for (boolean b : george)
  9. {
  10. for (boolean c : george)
  11. {
  12. for (boolean d : george)
  13. {
  14. boolean x = a ^ b ^ c ^ d;
  15. boolean y = a != b != c != d;
  16. System.out.println((x == y) ? ":)" : ":(");
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
  23.  
Success #stdin #stdout 0.08s 380224KB
stdin
Standard input is empty
stdout
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)
:)