Le'am facut pe cele de la BRONZE (am luat toate testele).
Prima de la SILVER nu am inteles'o,iar la a doua se pare k nu le'a placut lee'ul meu.. am luat doar 3 teste.
La GOLD am cazut doar un test la prima problema(un TLE), iar la a doua..
am facut o prostie mai mare decat mine, din neatentie am implementat ceva de genu':
i = 0; while (x+i <= n && y+i <= n) {i++; if (a[x+1][y+i] == 1) c++;}
i = 0; while (x-i >= 1 && y-i >= 1) {i++; if (a[x-1][y-i] == 1) c++;}
i = 0; while (x+i <= n && y-i >= 1) {i++; if (a[x+1][y-i] == 1) c++;}
i = 0; while (x-i >= 1 && y+i <= n) {i++; if (a[x-1][y+i] == 1) c++;}
in loc de
i = 0; while (x+i <= n && y+i <= n) {i++; if (a[x+i][y+i] == 1) c++;}
i = 0; while (x-i >= 1 && y-i >= 1) {i++; if (a[x-i][y-i] == 1) c++;}
i = 0; while (x+i <= n && y-i >= 1) {i++; if (a[x+i][y-i] == 1) c++;}
i = 0; while (x-i >= 1 && y+i <= n) {i++; if (a[x-i][y+i] == 1) c++;}
am incurcat "i"'ul cu "1".. si gafa a fost k nu am testat pe un test mai mare, ca m'as fi prins de gresala (testul din exemplu iesea si asa). (am luat doar 3 teste la problema asta, iar dupa ce am pus i in loc de 1 le'am luat pe toate
)