Detalii evaluare #53661522

Rezumat problemă

wall

#3972

În timpul vacanței cu familia Maria a vizitat multe obiective turistice. Ce a impresionat-o cel mai mult a fost un zid imens făcut din pietre. Zidul avea o formă dreptunghiulară și era format din pietre individuale de aceeași înălțime (cu lățimi nu neapărat egale), aranjate pe linii, una deasupra celeilalte. Numărul de pietre din zid era N, ele fiind numerotate cu numere întregi de la 1 la N. Pe fiecare piatră era scris numărul ei de ordine. Maria a constatat că pietrele de pe o linie nu sunt neapărat așezate (de la stânga la dreapta) în ordinea crescătoare a numerelor de ordine. Scrieți un program care determină dimensiunile dreptunghiului de arie minimă, care să reproducă zidul, conform cerințelor Mariei.

Detalii

Problema wall Operații I/O tastatură/ecran
Limita timp 0.8 secunde Limita memorie Total: 256 MB / Stivă 128 MB
Id soluție #53661522 Utilizator Vianu Tudor (Tudor_Vianu)
Fișier wall.cpp Dimensiune 1.85 KB
Data încărcării 07 Noiembrie 2024, 16:23 Scor / rezultat 0 puncte

Evaluare

Mesaj compilare

wall.cpp: In function 'void sortareTopologica(const std::vector<std::vector<int> >&, std::vector<int>&, std::vector<int>&)':
wall.cpp:53:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (ordonare.size() != N) {

                            ^

Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0 secunde The area of the wall is not minimal 2 0
2 0 secunde The area of the wall is not minimal 2 0
3 0 secunde The area of the wall is not minimal 2 0
4 0 secunde The area of the wall is not minimal 2 0
5 0 secunde The area of the wall is not minimal 2 0
6 0 secunde The area of the wall is not minimal 2 0
7 0 secunde The area of the wall is not minimal 2 0
8 0 secunde The area of the wall is not minimal 2 0
9 0 secunde The area of the wall is not minimal 3 0
10 0 secunde The area of the wall is not minimal 3 0
11 0 secunde The area of the wall is not minimal 3 0
12 0 secunde The area of the wall is not minimal 3 0
13 0 secunde The area of the wall is not minimal 3 0
14 0.004 secunde The area of the wall is not minimal 3 0
15 0.004 secunde The area of the wall is not minimal 3 0
16 0.004 secunde The area of the wall is not minimal 3 0
17 0.012 secunde The area of the wall is not minimal 3 0
18 0.012 secunde The area of the wall is not minimal 3 0
19 0.016 secunde The area of the wall is not minimal 3 0
20 0.032 secunde The area of the wall is not minimal 3 0
21 0.044 secunde The area of the wall is not minimal 3 0
22 0.06 secunde The area of the wall is not minimal 3 0
23 0.108 secunde The area of the wall is not minimal 3 0
24 0.116 secunde The area of the wall is not minimal 3 0
25 0.096 secunde The area of the wall is not minimal 3 0
26 0.224 secunde The area of the wall is not minimal 3 0
27 0.184 secunde The area of the wall is not minimal 3 0
28 0.204 secunde The area of the wall is not minimal 3 0
29 0.32 secunde The area of the wall is not minimal 3 0
30 0.272 secunde The area of the wall is not minimal 3 0
31 0.252 secunde The area of the wall is not minimal 3 0
32 0.324 secunde The area of the wall is not minimal 3 0
33 0.356 secunde The area of the wall is not minimal 3 0
34 0.3 secunde The area of the wall is not minimal 3 0
35 0.36 secunde The area of the wall is not minimal 3 0
36 0.228 secunde The area of the wall is not minimal 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 wall 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!