#1125
Overflow2
Se dau n
numere naturale, scrise sub forma \( a_{1}^{b_1} + a_{2}^{b_2} + \cdots + a_{m}^{b_m} \). Să se afle dacă numerele pot fi reprezentate pe 8 octeti, fără semn.
Problema | Overflow2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48815055 | Utilizator | |
Fișier | overflow2.cpp | Dimensiune | 4.28 KB |
Data încărcării | 06 Februarie 2024, 13:58 | Scor / rezultat | 90 puncte |
overflow2.cpp:170:38: warning: integer constant is so large that it is unsigned [enabled by default] unsigned long long max = 18446744073709551615; ^ overflow2.cpp: In function 'int main()': overflow2.cpp:163:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ overflow2.cpp:167:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ overflow2.cpp:172:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%llu %llu", &x, &y); ^ overflow2.cpp: In function 'int min(int, ...)': overflow2.cpp:59:12: warning: 'sol' may be used uninitialized in this function [-Wmaybe-uninitialized] return sol; ^ overflow2.cpp: In function 'int max(int, ...)': overflow2.cpp:75:16: warning: 'sol' may be used uninitialized in this function [-Wmaybe-uninitialized] return sol; ^ overflow2.cpp: In function 'double maxi(int, ...)': overflow2.cpp:90:12: warning: 'sol' may be used uninitialized in this function [-Wmaybe-uninitialized] return sol; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0.004 secunde | OK. | 5 | 5 | ||
4 | 0 secunde | Caught fatal signal 8 | 5 | 0 | ||
5 | 0 secunde | OK. | 5 | 5 | ||
6 | 0.044 secunde | OK. | 5 | 5 | ||
7 | 0.18 secunde | OK. | 30 | 30 | ||
8 | 0.032 secunde | OK. | 10 | 10 | ||
9 | 0.184 secunde | OK. | 30 | 30 | ||
Punctaj total | 90 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Overflow2 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ă.