#3293
Se citește un mesaj. Afișați codificarea sau decodificarea acestuia folosind cifrul bifid.
cifrul bifid
| Problema | bifid | Operații I/O |
bifid.in/bifid.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62967462 | Utilizator | |
| Fișier | bifid.cpp | Dimensiune | 1.25 KB |
| Data încărcării | 09 Februarie 2026, 09:55 | Scor/rezultat | 100 puncte |
bifid.cpp: In function 'int main()': bifid.cpp:16:15: warning: array subscript has type 'char' [-Wchar-subscripts] b[c]=i; ^ bifid.cpp:17:15: warning: array subscript has type 'char' [-Wchar-subscripts] d[c]=j; ^ bifid.cpp:26:25: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i*2]]][b[s[i*2+1]]]; ^ bifid.cpp:26:38: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i*2]]][b[s[i*2+1]]]; ^ bifid.cpp:29:25: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[l-1]]][d[s[0]]]; ^ bifid.cpp:29:34: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[l-1]]][d[s[0]]]; ^ bifid.cpp:31:31: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i*2+1]]][d[s[i*2+2]]]; ^ bifid.cpp:31:44: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i*2+1]]][d[s[i*2+2]]]; ^ bifid.cpp:36:25: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i*2]]][d[s[i*2+1]]]; ^ bifid.cpp:36:38: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i*2]]][d[s[i*2+1]]]; ^ bifid.cpp:43:31: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i]]][b[s[i+l/2]]]; ^ bifid.cpp:43:44: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i]]][b[s[i+l/2]]]; ^ bifid.cpp:44:31: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i]]][d[s[i+l/2]]]; ^ bifid.cpp:44:44: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i]]][d[s[i+l/2]]]; ^ bifid.cpp:50:37: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i/2]]][d[s[i/2+l/2]]]; ^ bifid.cpp:50:52: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[b[s[i/2]]][d[s[i/2+l/2]]]; ^ bifid.cpp:52:37: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i/2]]][b[s[i/2+l/2+1]]]; ^ bifid.cpp:52:54: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<a[d[s[i/2]]][b[s[i/2+l/2+1]]]; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 3 | 0 secunde | OK. | 5 | 5 | ||
| 4 | 0 secunde | OK. | 5 | 5 | ||
| 5 | 0 secunde | OK. | 5 | 5 | ||
| 6 | 0 secunde | OK. | 10 | 10 | ||
| 7 | 0 secunde | OK. | 10 | 10 | ||
| 8 | 0 secunde | OK. | 5 | 5 | ||
| 9 | 0 secunde | OK. | 5 | 5 | ||
| 10 | 0 secunde | OK. | 5 | 5 | ||
| 11 | 0 secunde | OK. | 10 | 10 | ||
| 12 | 0 secunde | OK. | 10 | 10 | ||
| 13 | 0 secunde | OK. | 10 | 10 | ||
| 14 | 0 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema bifid 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ă.