Hard deck/Basic

for Projecting

서버관리자 페페 2022. 8. 2. 19:20
int count = 0;
for (int i = 2; i < 10000001; i++) {
    if (A[i] != 0) {
        long temp = A[i]; // Projecting
        while ((double)A[i] <= (double)Max / (double)temp) {
            if ((double)A[i] >= (double)Min / (double)temp) {
            count++;
            }
            temp = temp*A[i];
        }
    }
}

 

long temp는 for 공간에 projected된다