#2461
V
Se consideră un tablou bidimensional cu m
linii şi n
coloane. Se numeşte traseu în V
o parcurgere prin elementele tabloului astfel:
V
ca în desen, dintr-un element putându-se trece doar într-un alt element imediat vecin pe diagonală.Fiecare element al tabloului conţine valori întregi. La parcurgerea traseului se calculează suma elementelor de pe traseu.
Determinaţi traseul în V
care are suma maximă. În cazul în care există mai multe trasee de sumă maximă, se va alege traseul care parcurge cele mai puţine elemente. Dacă şi în acest caz există mai multe soluţii, se alege traseul cel mai din stânga (cel cu indicele coloanei de pornire cel mai mic).
Problema | V | Operații I/O |
v.in /v.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 5 MB
/
Stivă 5 MB
|
Id soluție | #29519359 | Utilizator | |
Fișier | v.pas | Dimensiune | 1.52 KB |
Data încărcării | 06 Mai 2021, 15:07 | Scor / rezultat | 0 puncte |
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling v.pas v.pas(1,2) Warning: The switch "$E" is not supported by the currently selected target v.pas(1,2) Note: Ignored compiler switch "$F" v.pas(1,2) Note: Ignored compiler switch "$G" v.pas(1,2) Warning: Unsupported switch "$L" v.pas(1,2) Warning: Unsupported switch "$N" v.pas(1,2) Warning: Unsupported switch "$Y" v.pas(35,12) Note: Local variable "k" not used v.pas(35,14) Note: Local variable "l" not used v.pas(35,16) Note: Local variable "c" not used Linking the.exe 80 lines compiled, 0.0 sec 4 warning(s) issued 5 note(s) issued /usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
2 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
3 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
4 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
5 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
6 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
7 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
8 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
9 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
10 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
11 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
12 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
13 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
14 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
15 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
16 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
17 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
18 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
19 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
20 | 0 secunde | Exited with error status 202 | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema V face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.