#3320
Să se cripteze sau să se decripteze un mesaj folosind cifrul trifid.
| Problema | trifid | Operații I/O |
trifid.in/trifid.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64259000 | Utilizator | |
| Fișier | trifid.cpp | Dimensiune | 1.13 KB |
| Data încărcării | 26 Aprilie 2026, 20:09 | Scor/rezultat | 0 puncte |
trifid.cpp: In function ‘int main()’: trifid.cpp:37:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 37 | v[a[i][j]]={l, c, r}; | ^ trifid.cpp:42:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] 42 | v1[i]=v[s[i]].l; | ^ trifid.cpp:43:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 43 | v1[n+i]=v[s[i]].c; | ^ trifid.cpp:44:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 44 | v1[2*n+i]=v[s[i]].r; | ^ trifid.cpp:51:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 51 | v1[3*i]=v[s[i]].l; | ^ trifid.cpp:52:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 52 | v1[3*i]=v[s[i]].c; | ^ trifid.cpp:53:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 53 | v1[3*i+1]=v[s[i]].r; | ^ trifid.cpp:36:24: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 36 | ma[l][c][r]=a[i][j]; trifid.cpp:31:20: note: within this loop 31 | for (j=0; j<9; j++){ | ~^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 3 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema trifid 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ă.