#3849
Se dă a, b și c, să se calculeze \({a}^{{b}^{c}}\) modulo \({10}^{9}+7\).
ad-hoc
| Problema | Exponentiere | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.01 secunde | Limita memorie |
Total: 1 MB
/
Stivă 1 MB
|
| Id soluție | #64968463 | Utilizator | |
| Fișier | exponentiere.cpp | Dimensiune | 659 B |
| Data încărcării | 28 Iunie 2026, 14:14 | Scor/rezultat | 100 puncte |
exponentiere.cpp: In function ‘long long int exponentiere(long long int, long long int, long long int)’: exponentiere.cpp:12:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 12 | if (exponent % 2 == 1) | ^~ exponentiere.cpp:15:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 15 | baza =( baza * baza) % modulo; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0.001 secunde | OK. | 5 | 5 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| 6 | 0.001 secunde | OK. | 20 | 20 | ||
| 7 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Exponentiere 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ă.