Register
|
Login
Home
News
Competitions
Practice
How to
Rankings
Calendar
Arena
CodeFu 2007
CodeFu'07 Highlights
Jazoon'07 Highlights
Schedule
Rules
Prizes
Results
Competitions
»
Main CodeFu Competitons
»
CodeFu 2007
»
Results
CodeFu 2007 Results
CodeFu Final Round Results
draganzahariev's solution for 400: Square Count, written in Java
public class SquareCount { public static int pos(int n){ int x=0;int k=2;int i=2; while(x!=n){ System.out.println(x+" "+n); x=n; int koreni=(int)Math.round(Math.sqrt(n)); i=k; while (i<koreni){ n+=n/(i*i); i++; } k=koreni; } return n; } }