#2398
Moca dorește să posteze pe Pbinfo a
probleme de dificultate b
. Durata postării celor a
probleme de dificultate b
este restul împărțirii lui \(a ^ b\) la 1999999973
.
Problema | Moka | Operații I/O |
![]() moka.in /moka.out
|
---|---|---|---|
Limita timp | 0.05 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #57765916 | Utilizator | |
Fișier | moka.c | Dimensiune | 666 B |
Data încărcării | 15 Aprilie 2025, 09:42 | Scor / rezultat | 20 puncte |
moka.c: In function 'fast_exp': moka.c:12:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (n > 0) ^ moka.c: In function 'main': moka.c:26:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(fout, "%d\n", rez); ^ moka.c: In function 'fast_exp': moka.c:17:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ moka.c: In function 'main': moka.c:24:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &a, &b); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Moka 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ă.