#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #21139915 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.95 KB |
Data încărcării | 20 Februarie 2020, 23:17 | Scor / rezultat | 64 puncte |
gasti.cpp: In function 'void dfs(int)': gasti.cpp:17:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i = 0; i < L[nod].size(); i++ ){ ^ gasti.cpp: In function 'int main()': gasti.cpp:56:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if ( st[i] != max1 ) ^ gasti.cpp:51:3: warning: 'f1' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( f1 > 1 ) // daca am mai multe gasti cu nr maxim, pot conecta oricare 2 si din acestea oricare 2 noduri din cele max1 noduri ^ gasti.cpp:64:33: warning: 'f2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << ( 1LL * max1 * max2 * f2 ) % 666013; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Corect ambele! | 10 | 10 | ||
2 | 0 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
3 | 0.004 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
4 | 0 secunde | Corect ambele! | 10 | 10 | ||
5 | 0.016 secunde | Corect ambele! | 10 | 10 | ||
6 | 0.028 secunde | Corect ambele! | 10 | 10 | ||
7 | 0.028 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
8 | 0.048 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
9 | 0.08 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
10 | 0.112 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
Punctaj total | 64 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti 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ă.