Diferente pentru probleme-cu-puncte-laticiale intre reviziile #21 si #23

Nu exista diferente intre titluri.

Diferente intre continut:

Astfel, am ajuns la următorul algoritm:
==code(c) |
long num = 0;
for (long h = 2; h <= N + 1; h++) {
    for (long w = 2; w <= M + 1; w++) {
long long num = 0, laux = 0 ;
for (int h = 2; h <= N + 1; h++) {
    for (int w = 2; w <= M + 1; w++) {
        laux = (h - 2) * (w - 2) + h * w - cmmdc(h - 1, w - 1) - 2;
        num += (N - h + 1) * (M - w + 1) * laux;
        num += (N - h + 2) * (M - w + 2) * laux;
    }
}
==

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.