Detalii evaluare #64121081

Rezumat problemă

Se dă o matrice de rebus cu n linii și m coloane. Fiecare celulă conține unul dintre caracterele:

  • '+' – celulă blocată (nu poate conține literă)
  • '-' – celulă liberă (trebuie completată cu o literă)

De asemenea, se dă o listă de W cuvinte (formate doar din litere mari A-Z) care trebuie completate în rebus.

Un cuvânt poate fi plasat:

  • pe orizontală (în aceeași linie), sau
  • pe verticală (în aceeași coloană),

într-un segment maximal de celule '-' consecutive (numit slot). Lungimea cuvântului trebuie să fie egală cu lungimea slotului.

Două cuvinte se pot intersecta (o celulă poate aparține atât unui slot orizontal, cât și unuia vertical), dar în acest caz litera rezultată în acea celulă trebuie să coincidă pentru ambele cuvinte.

Fiecare cuvânt din listă trebuie folosit exact o singură dată.

hackerrank.com (modificată)
Fișiere Andrei Visalon (Prekzursil) Mirela Mlisan, Andrei Visalon dificilă

Detalii

Problema Crossword Operații I/O crossword.in/crossword.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 64 MB
Id soluție #64121081 Utilizator Avram Raul (hugoMboss)
Fișier crossword.java Dimensiune 3.94 KB
Data încărcării 18 Aprilie 2026, 14:02 Scor/rezultat 0 puncte

Evaluare

Mesaj compilare



Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0.04 secunde Exited with error status 1 5 0 Exemplu
2 0.048 secunde Exited with error status 1 5 0 Exemplu
3 0.051 secunde Exited with error status 1 5 0 Exemplu
4 0.04 secunde Exited with error status 1 2 0
5 0.04 secunde Exited with error status 1 2 0
6 0.04 secunde Exited with error status 1 2 0
7 0.038 secunde Exited with error status 1 2 0
8 0.055 secunde Exited with error status 1 2 0
9 0.039 secunde Exited with error status 1 2 0
10 0.04 secunde Exited with error status 1 2 0
11 0.04 secunde Exited with error status 1 2 0
12 0.057 secunde Exited with error status 1 2 0
13 0.048 secunde Exited with error status 1 2 0
14 0.058 secunde Exited with error status 1 2 0
15 0.057 secunde Exited with error status 1 2 0
16 0.075 secunde Exited with error status 1 2 0
17 0.075 secunde Exited with error status 1 2 0
18 0.082 secunde Exited with error status 1 2 0
19 0.084 secunde Exited with error status 1 2 0
20 0.1 secunde Exited with error status 1 2 0
21 0.111 secunde Exited with error status 1 5 0
22 0.119 secunde Exited with error status 1 5 0
23 0.145 secunde Exited with error status 1 5 0
24 0.131 secunde Exited with error status 1 5 0
25 0.051 secunde Exited with error status 1 4 0
26 0.04 secunde Exited with error status 1 4 0
27 0.05 secunde Exited with error status 1 4 0
28 0.061 secunde Exited with error status 1 4 0
29 0.12 secunde Exited with error status 1 4 0
30 0.056 secunde Exited with error status 1 4 0
31 0.104 secunde Exited with error status 1 4 0
32 0.093 secunde Exited with error status 1 3 0
Punctaj total 0

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Crossword face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.

Du-te sus!