题目链接:https://vjudge.net/problem/LightOJ-1236 1236 - Pairs Forming LCM PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Find the result of the following code: long long pairsFormLCM( int n ) { long long res = 0; for(…
链接: https://vjudge.net/problem/LightOJ-1236 题意: Find the result of the following code: long long pairsFormLCM( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) for( int j = i; j <= n; j++ ) if( lcm(i, j) == n ) res++; // lcm means least co…