#4049
ndivnlen
Se dă un număr natural \(n\). Găsiți orice număr \(k\) de exact \(n\) cifre care este divizibil cu \(n\).
Simulare concurs CEX Hunedoara, februarie 2022
Problema | ndivnlen | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #57405215 | Utilizator | |
Fișier | ndivnlen.cpp | Dimensiune | 308 B |
Data încărcării | 29 Martie 2025, 16:38 | Scor / rezultat | 21 puncte |
ndivnlen.cpp: In function 'int main()': ndivnlen.cpp:14:8: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] for(k=a;k<b;k++) ^ ndivnlen.cpp:16:16: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized] if(k%n==0) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Corect! | 4 | 4 | ||
2 | 0 secunde | Corect! | 4 | 4 | ||
3 | 0 secunde | Incorect! | 4 | 0 | Exemplu | |
4 | 0 secunde | Corect! | 4 | 4 | ||
5 | 0 secunde | Corect! | 4 | 4 | ||
6 | 0 secunde | Incorect! | 5 | 0 | ||
7 | 0 secunde | Incorect! | 5 | 0 | ||
8 | 0 secunde | Corect! | 5 | 5 | ||
9 | 0 secunde | Incorect! | 5 | 0 | ||
10 | 0 secunde | Incorect! | 5 | 0 | ||
11 | 0 secunde | Incorect! | 5 | 0 | ||
12 | 0 secunde | Incorect! | 10 | 0 | ||
13 | 0 secunde | Incorect! | 10 | 0 | ||
14 | 0 secunde | Incorect! | 10 | 0 | ||
15 | 0 secunde | Incorect! | 10 | 0 | ||
16 | 0 secunde | Incorect! | 10 | 0 | ||
Punctaj total | 21 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ndivnlen 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ă.