fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. # short version: $_="I xe tx "x$_;s/tx $/it./;s/x/++$.%4?hat:lov/ge
  5.  
  6. $_ = "I xe tx " x <>;
  7.  
  8. s/tx $/it./;
  9.  
  10. s/x/ ++$. % 4 ? hat : lov /ge;
  11.  
Success #stdin #stdout 0s 6056KB
stdin
3
stdout
I hate that I love that I hate it.