#3637
Interesting Array
Se dă un vector cu n
numere. În acest vector, trebuie aflat intervalul(care poate fi oricare subsecvență cu elemente consecutive din vector) care este cel mai interesant.
Problema | Interesting Array | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #26153372 | Utilizator | |
Fișier | interesting_array.cpp | Dimensiune | 2.38 KB |
Data încărcării | 25 Noiembrie 2020, 15:32 | Scor / rezultat | 100 puncte |
interesting_array.cpp: In function 'long long int solve(int, int, int)': interesting_array.cpp:37:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < ranges.size(); ++i) { ^ interesting_array.cpp:60:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < ranges.size(); ++i) { ^ interesting_array.cpp: In function 'int main()': interesting_array.cpp:78:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ interesting_array.cpp:82:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0.004 secunde | OK. | 1 | 1 | Exemplu | |
2 | 0 secunde | OK. | 4 | 4 | ||
3 | 0.004 secunde | OK. | 5 | 5 | ||
4 | 0.004 secunde | OK. | 5 | 5 | ||
5 | 0.004 secunde | OK. | 5 | 5 | ||
6 | 0.06 secunde | OK. | 5 | 5 | ||
7 | 0.66 secunde | OK. | 5 | 5 | ||
8 | 0.516 secunde | OK. | 5 | 5 | ||
9 | 0.436 secunde | OK. | 5 | 5 | ||
10 | 0.144 secunde | OK. | 5 | 5 | ||
11 | 0.144 secunde | OK. | 5 | 5 | ||
12 | 0.228 secunde | OK. | 5 | 5 | ||
13 | 0.552 secunde | OK. | 5 | 5 | ||
14 | 0.428 secunde | OK. | 5 | 5 | ||
15 | 0.056 secunde | OK. | 5 | 5 | ||
16 | 0.608 secunde | OK. | 5 | 5 | ||
17 | 0.524 secunde | OK. | 5 | 5 | ||
18 | 0.432 secunde | OK. | 5 | 5 | ||
19 | 0.144 secunde | OK. | 5 | 5 | ||
20 | 0.22 secunde | OK. | 5 | 5 | ||
21 | 0.148 secunde | OK. | 5 | 5 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Interesting Array 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ă.