#1441
Submatrix
Fiind dată o matrice pătratică de dimensiune n
cu valori 0
și 1
, să se determine dimensiunea maximă a unei submatrice ce conține numai valori 1
.
Concursul Interjudețean de Informatică „Memorial Ștefan Dârțu”, ediția a XI-a, 12 decembrie 2015, Vatra Dornei
Problema | Submatrix | Operații I/O |
submatrix.in /submatrix.out
|
---|---|---|---|
Limita timp | 0.25 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #11129732 | Utilizator | |
Fișier | submatrix.pas | Dimensiune | 1.61 KB |
Data încărcării | 18 Octombrie 2018, 18:18 | 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 submatrix.pas submatrix.pas(110,14) Warning: Variable "max" does not seem to be initialized submatrix.pas(2,9) Note: Local variable "firstnumber" not used submatrix.pas(2,21) Note: Local variable "secondnumber" not used submatrix.pas(2,34) Note: Local variable "c" not used submatrix.pas(2,36) Note: Local variable "nrc" not used submatrix.pas(2,40) Note: Local variable "k" not used submatrix.pas(2,42) Note: Local variable "s" not used submatrix.pas(2,46) Note: Local variable "l" not used submatrix.pas(2,102) Note: Local variable "vb" not used submatrix.pas(2,132) Note: Local variable "b" not used Linking the.exe 119 lines compiled, 0.0 sec 1 warning(s) issued 9 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 | ||
---|---|---|---|---|---|---|
0 | 0.108 secunde | Exited with error status 105 | 10 | 0 | ||
1 | 0.104 secunde | Exited with error status 105 | 10 | 0 | ||
2 | 0 secunde | Exited with error status 105 | 10 | 0 | ||
3 | 0.036 secunde | Exited with error status 105 | 10 | 0 | ||
4 | 0.036 secunde | Exited with error status 105 | 10 | 0 | ||
5 | 0.076 secunde | Exited with error status 105 | 10 | 0 | ||
6 | 0.06 secunde | Exited with error status 105 | 10 | 0 | ||
7 | 0.008 secunde | Exited with error status 105 | 10 | 0 | ||
8 | 0 secunde | Exited with error status 105 | 10 | 0 | ||
9 | 0.104 secunde | Exited with error status 105 | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Submatrix 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ă.