#2597
PermutarePow
Fie ∆
o permutare de gradul n
. Se cere să se calculeze perioada principală a funcției f(x)
= ∆
x
.
Problema | PermutarePow | Operații I/O |
permutarepow.in /permutarepow.out
|
---|---|---|---|
Limita timp | 0.13 secunde | Limita memorie |
Total: 11 MB
/
Stivă 1 MB
|
Id soluție | #45236565 | Utilizator | |
Fișier | permutarepow.cpp | Dimensiune | 1.71 KB |
Data încărcării | 06 Octombrie 2023, 20:01 | Scor / rezultat | Eroare de compilare |
permutarepow.cpp:51:11: error: redefinition of 'const int NRMAX' const int NRMAX=1000002; ^ permutarepow.cpp:5:11: error: 'const int NRMAX' previously defined here const int NRMAX=1000002; ^ permutarepow.cpp:52:21: error: redefinition of 'unsigned int v [1000002]' unsigned int v[NRMAX]; ^ permutarepow.cpp:6:14: error: 'unsigned int v [1000002]' previously declared here unsigned int v[NRMAX]; ^ permutarepow.cpp:53:13: error: redefinition of 'bool b [1000002]' bool b[NRMAX]; ^ permutarepow.cpp:7:6: error: 'bool b [1000002]' previously declared here bool b[NRMAX]; ^ permutarepow.cpp: In function 'long long unsigned int cmmdc(long long unsigned int, long long unsigned int)': permutarepow.cpp:54:20: error: redefinition of 'long long unsigned int cmmdc(long long unsigned int, long long unsigned int)' unsigned long long cmmdc(unsigned long long a,unsigned long long b){ ^ permutarepow.cpp:8:20: error: 'long long unsigned int cmmdc(long long unsigned int, long long unsigned int)' previously defined here unsigned long long cmmdc(unsigned long long a,unsigned long long b){ ^ permutarepow.cpp: In function 'long long unsigned int cmmmc(long long int, long long unsigned int)': permutarepow.cpp:60:27: error: redefinition of 'long long unsigned int cmmmc(long long int, long long unsigned int)' inline unsigned long long cmmmc(long long x,unsigned long long y){ ^ permutarepow.cpp:14:27: error: 'long long unsigned int cmmmc(long long int, long long unsigned int)' previously defined here inline unsigned long long cmmmc(long long x,unsigned long long y){ ^ permutarepow.cpp: In function 'int main()': permutarepow.cpp:63:5: error: redefinition of 'int main()' int main() ^ permutarepow.cpp:17:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PermutarePow 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ă.