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. // public class groundspeak { static long east(long a, long b) { return (a < 1 || b < 1) ? 1 : east(a - 1, b) + north(b - 2, a - 1); } static long north(long a, long b) { return (a < 1 || b < 1) ? 1 : east(b, a - 1) + north(a, b - 1); } public static void main(String[] args) { char koordinaten[] = ("°. NE'012456" + Long.toString(east(47, 47))).toCharArray(); for (int k : new int[] {3,2,10,8,0,2,7,16,1,27,30,26,5,2,4,2,6,7,6,0,2,7,28,1,21,28,17,5}) System.out.print(koordinaten[k]); } }
  13. }
  14. }
Success #stdin #stdout 0.08s 54528KB
stdin
Standard input is empty
stdout
Standard output is empty