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. int i,j,x,y,p;
  13. int [][] matrice=new int[99][102];
  14.  
  15. for(i=0;i<99;i++)
  16.  
  17. {matrice[i][0]=i+2;
  18. for(j=2;j<=i+2;j++)
  19. for(p=1;p<=6;p++) if(matrice[i][0]==putere(j,p))
  20. {matrice[i][1]=j;
  21. matrice[i][2]=p;
  22. p=7;
  23. j=i+3;
  24. System.out.println(matrice[i][0]+" "+matrice[i][1]+" "+matrice[i][2]);}
  25.  
  26. for(j=3;j<102;j++) matrice[i][j]=matrice[i][2]*j;
  27. }
  28.  
  29.  
  30. }
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. public static int putere(int k,int l)
  43. {if(l==0) return 1;
  44. else return putere(k,l-1);
  45.  
  46. }
  47. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
Standard output is empty