#1444
Să se afle indicele coloanei dintr-o matrice pentru care suma elementelor este minimă.
folclor
| Problema | Memory001 | Operații I/O |
memory001.in/memory001.out
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0 MB
|
| Id soluție | #64624698 | Utilizator | |
| Fișier | memory001.cpp | Dimensiune | 526 B |
| Data încărcării | 19 Mai 2026, 10:19 | Scor/rezultat | 60 puncte |
In file included from /usr/include/c++/13/istream:41, from /usr/include/c++/13/fstream:40, from memory001.cpp:1: In member function ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]’, inlined from ‘int main()’ at memory001.cpp:23:10: /usr/include/c++/13/ostream:204:25: warning: ‘col’ may be used uninitialized [-Wmaybe-uninitialized] 204 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ memory001.cpp: In function ‘int main()’: memory001.cpp:6:27: note: ‘col’ was declared here 6 | long long m,n,v[1001],col,x; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.002 secunde | OK. | 20 | 20 | ||
| 3 | 0.016 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.132 secunde | OK. | 20 | 20 | ||
| 5 | 0.128 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory001 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ă.