#3747
Presupunem că avem două cutii notate A și B. Cutia A conține N bile numerotate cu numerele naturale distincte: 0, 1, 2, . . . , N − 1. Cutia B este goală. Spunem că o bilă dintr-o cutie este bila specială a acestei cutii dacă numărul X cu care este numerotată această bilă este egal cu media aritmetică a numerelor celorlalte bile din cutie. La un moment dat, cineva mută bila cu numărul K din cutia A în cutia B. Vi se cere să alegeți alte K bile, din cutia A, pe care să le mutați în cutia B astfel încât cutia B să conțină K + 1 bile, iar bila cu numărul K să fie bila specială a cutiei B.
| Problema | Bile4 | Operații I/O |
bile4.in/bile4.out
|
|---|---|---|---|
| Limita timp | 0.01 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
| Id soluție | #60419185 | Utilizator | |
| Fișier | bile4.cpp | Dimensiune | 1.79 KB |
| Data încărcării | 01 Noiembrie 2025, 05:48 | Scor/rezultat | 0 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 1 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 2 | 0 secunde | Exited with error status 48 | 4 | 0 | ||
| 3 | 0 secunde | Exited with error status 10 | 4 | 0 | ||
| 4 | 0 secunde | Exited with error status 57 | 4 | 0 | ||
| 5 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 6 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 7 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 8 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 9 | 0 secunde | Exited with error status 50 | 4 | 0 | ||
| 10 | 0 secunde | Exited with error status 10 | 4 | 0 | ||
| 11 | 0 secunde | Exited with error status 52 | 4 | 0 | ||
| 12 | 0 secunde | Exited with error status 53 | 4 | 0 | ||
| 13 | 0 secunde | Exited with error status 48 | 4 | 0 | ||
| 14 | 0 secunde | Exited with error status 53 | 4 | 0 | ||
| 15 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 16 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 17 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 18 | 0 secunde | Exited with error status 255 | 4 | 0 | ||
| 19 | 0 secunde | Exited with error status 50 | 4 | 0 | ||
| 20 | 0 secunde | Exited with error status 10 | 4 | 0 | ||
| 21 | 0 secunde | Exited with error status 52 | 4 | 0 | ||
| 22 | 0 secunde | Exited with error status 53 | 4 | 0 | ||
| 23 | 0 secunde | Exited with error status 48 | 4 | 0 | ||
| 24 | 0 secunde | Exited with error status 53 | 4 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bile4 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ă.