#1812
LitereGen1
Scrieți un program care citeşte o valoare naturală impară pentru n
şi apoi generează şi afişează în ordine crescătoare lexicografic toate combinaţiile formate din n
litere mici care îndeplinesc următoarele proprietăţi:
- încep şi se termină cu a
;
- oricare două litere alăturate dintr-o combinaţie sunt consecutive în alfabet.
Problema | LitereGen1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #45814040 | Utilizator | |
Fișier | literegen1.cpp | Dimensiune | 1.27 KB |
Data încărcării | 22 Octombrie 2023, 17:58 | Scor / rezultat | Eroare de compilare |
literegen1.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ literegen1.cpp:1:7: error: 'System' has not been declared literegen1.cpp:2:7: error: expected nested-name-specifier before 'System' using System.IO; ^ literegen1.cpp:2:7: error: 'System' has not been declared literegen1.cpp:2:13: error: expected ';' before '.' token using System.IO; ^ literegen1.cpp:2:13: error: expected unqualified-id before '.' token literegen1.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Security.Cryptography.X509Certificates; ^ literegen1.cpp:3:7: error: 'System' has not been declared literegen1.cpp:3:13: error: expected ';' before '.' token using System.Security.Cryptography.X509Certificates; ^ literegen1.cpp:3:13: error: expected unqualified-id before '.' token literegen1.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ literegen1.cpp:4:7: error: 'System' has not been declared literegen1.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ literegen1.cpp:4:13: error: expected unqualified-id before '.' token literegen1.cpp:6:1: error: expected unqualified-id before 'public' public class Program ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LitereGen1 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ă.