#4158
Se dă lista arcelor unui graf orientat. Să se determine nodurile care au gradul exterior divizibil cu gradul interior sau gradul interior divizibil cu gradul exterior.
| Problema | Grade11 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64572884 | Utilizator | |
| Fișier | grade11.cpp | Dimensiune | 665 B |
| Data încărcării | 15 Mai 2026, 09:19 | Scor/rezultat | 0 puncte |
grade11.cpp: In function ‘int grad_ext(int)’: grade11.cpp:18:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 18 | for(j=1;j<=n;j++) | ^~~ grade11.cpp:21:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | return gr; | ^~~~~~ grade11.cpp: In function ‘int grad_int(int)’: grade11.cpp:26:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 26 | for(i=1;i<=n;i++) | ^~~ grade11.cpp:29:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 29 | return gr; | ^~~~~~ grade11.cpp: In function ‘int main()’: grade11.cpp:35:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 35 | for(i=1;i<=n;i++) | ^~~ grade11.cpp:38:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 38 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade11 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ă.