long long function( int n ) {
    long long res = 0;
    for( int i = 1; i <= n; i++ )
        for( int j = i+1; j <= n; j++ )
                  res+=lcm(i,j);
    return res;
}

N<=5*10^6 and TestCases<=25000.. TimeLimit=5s
Can anyone give hints to solve this ?
Thanks in advance !

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to