#1125
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 | #63505669 | Utilizator | |
| Fișier | overflow2.cpp | Dimensiune | 962 B |
| Data încărcării | 06 Martie 2026, 09:25 | Scor/rezultat | 100 puncte |
overflow2.cpp:5:44: warning: integer constant is so large that it is unsigned [enabled by default] unsigned long long n, m, a, b, maxim = 18446744073709551615, factor, sum; ^ overflow2.cpp: In function 'int main()': overflow2.cpp:7:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= n; i++){ ^ overflow2.cpp:18:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= b; i++){ ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0 secunde | OK. | 5 | 5 | ||
| 3 | 0.032 secunde | OK. | 5 | 5 | ||
| 4 | 0 secunde | OK. | 5 | 5 | ||
| 5 | 0.012 secunde | OK. | 5 | 5 | ||
| 6 | 0.16 secunde | OK. | 5 | 5 | ||
| 7 | 0.596 secunde | OK. | 30 | 30 | ||
| 8 | 0.14 secunde | OK. | 10 | 10 | ||
| 9 | 0.628 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
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ă.