this is my solution:

import java.io.*;
class gcj
{
 public static void main(String args[])
 {
  int i,flag=0;
  for(i=0;i<=200;i++)
  {
  if(i<=100 && flag==0)
  {
   System.out.print(+i);
   System.out.println("\t"+(100-i));

   if(i==100)
   flag=1;
  }
  else
  {
  if(flag==1)
  {
   --i;
   System.out.print(+(--i));
   System.out.println("\t0");
   if(i==0)
   flag=2;
  }
  else
  {
   System.out.print(+i);
   System.out.println("\t"+i);
  }
  }
  }
 }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to