#4370
Dându-se o listă conținând KDA-urilor celor N prieteni ai lui Gigel și mărimea unei echipe k, Gigel dorește să afle care este qE-ul celei mai neechilibrate echipe. Astfel el calculează qE-ul tuturor echipelor posibile (\(\frac{N!}{k!(N-k)!}\) la număr) și apoi alege qE-ul maxim posibil.
Info-Oltenia 2023, individual 10
| Problema | kda | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 128 MB
/
Stivă 64 MB
|
| Id soluție | #58752513 | Utilizator | |
| Fișier | kda.cpp | Dimensiune | 964 B |
| Data încărcării | 31 Iulie 2025, 23:30 | Scor/rezultat | 0 puncte |
kda.cpp: In function 'bool check(long long int)': kda.cpp:8:19: warning: unused variable 'nr' [-Wunused-variable] int ct=1,ok=0,nr=0,pz=0; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 15 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
| 16 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 17 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 18 | 0.016 secunde | Raspuns gresit. | 5 | 0 | ||
| 19 | 0.024 secunde | Raspuns gresit. | 5 | 0 | ||
| 20 | 0.036 secunde | Raspuns gresit. | 5 | 0 | ||
| 21 | 0.048 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema kda 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ă.