#3294
Hmmm
Fie λ
o permutare de grad N
și K
un număr natural nenul. Să se afișeze toate soluțiile ecuației \({x}^{K}=λ\) în ordine lexicografică.
Problema | Hmmm | Operații I/O |
hmmm.in /hmmm.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #52533896 | Utilizator | |
Fișier | hmmm.cpp | Dimensiune | 1.31 KB |
Data încărcării | 02 Octombrie 2024, 17:14 | Scor / rezultat | Eroare de compilare |
hmmm.cpp: In function 'void compunere(int*, int*)': hmmm.cpp:12:21: error: 'N' was not declared in this scope for(i = 1; i <= N; i++) ^ hmmm.cpp:14:21: error: 'N' was not declared in this scope for(i = 1; i <= N; i++) ^ hmmm.cpp: In function 'bool verific(int*)': hmmm.cpp:39:17: error: 'K' was not declared in this scope powlg(P, v, K); ^ hmmm.cpp:39:18: error: 'powlg' was not declared in this scope powlg(P, v, K); ^ hmmm.cpp:40:25: error: 'N' was not declared in this scope for(int i = 1; i <= N; i++) ^ hmmm.cpp:42:20: error: 'L' was not declared in this scope if(v[i] != L[i]) ^ hmmm.cpp: In function 'void BT(int)': hmmm.cpp:50:13: error: 'N' was not declared in this scope if(k <= N) ^ hmmm.cpp:55:17: error: 'X' was not declared in this scope X[k] = i; ^ hmmm.cpp:63:20: error: 'X' was not declared in this scope if(verific(X)) ^ hmmm.cpp: In function 'int main()': hmmm.cpp:74:10: error: 'N' was not declared in this scope f >> N >> K; ^ hmmm.cpp:74:15: error: 'K' was not declared in this scope f >> N >> K; ^ hmmm.cpp:76:14: error: 'L' was not declared in this scope f >> L[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Hmmm 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ă.