Diferente pentru problema/memcpy intre reviziile #18 si #23

Nu exista diferente intre titluri.

Diferente intre continut:

int hash = 0, mod = 1e9 + 7;
for(int i = 1; i <= n * m; ++i) {
    hash += 1LL * raspuns[i].x * raspuns[i].y % mod;
    hash += 1LL * i * raspuns[i].x * raspuns[i].y % mod;
    hash %= mod;
}
==
| 858
|
h3. Explicaţie
 
Celulele vor fi copiate în această ordine: (1, 4); (2, 4); (1, 3); (3, 4); (2, 3); (1, 2); (4, 1); (4, 2); (3, 1); (4, 3); (3, 2); (2, 1); (4, 4); (3, 3); (2, 2); (1, 1).
== include(page="template/taskfooter" task_id="memcpy") ==

Nu exista diferente intre securitate.

Diferente intre topic forum:

 
9615