#4153
Se dă lista arcelor unui graf orientat. Să se determine nodurile care au gradul exterior mai mic decât gradul interior.
| Problema | Grade3 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64573030 | Utilizator | |
| Fișier | grade3.cpp | Dimensiune | 663 B |
| Data încărcării | 15 Mai 2026, 09:25 | Scor/rezultat | 100 puncte |
grade3.cpp: In function ‘int gr_ext(int)’: grade3.cpp:6:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 6 | for( i=1; i<=n; i++) | ^~~ grade3.cpp:9:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 9 | return gr; | ^~~~~~ grade3.cpp: In function ‘int gr_int(int)’: grade3.cpp:13:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for( i=1; i<=n; i++) | ^~~ grade3.cpp:16:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | return gr; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 40 | 40 | ||
| 3 | 0.001 secunde | OK. | 40 | 40 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade3 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ă.