#3140
Să se codeze/decodeze un șir folosind cifrul A1Z26
| Problema | a1z26 | Operații I/O |
a1z26.in/a1z26.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
| Id soluție | #25923620 | Utilizator | |
| Fișier | a1z26.cpp | Dimensiune | 672 B |
| Data încărcării | 19 Noiembrie 2020, 09:07 | Scor/rezultat | 50 puncte |
a1z26.cpp: In function 'int main()': a1z26.cpp:18:38: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=] printf("%lld ",s[i]-'A'+1); ^ a1z26.cpp:27:36: warning: format '%c' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%c",'A'+x-1); ^ a1z26.cpp:9:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("a1z26.in","r",stdin); ^ a1z26.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("a1z26.out","w",stdout); ^ a1z26.cpp:12:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&c); ^ a1z26.cpp:15:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ a1z26.cpp:22:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&n); ^ a1z26.cpp:26:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&x); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 2 | 0 | Exemplu | |
| 2 | 0 secunde | OK. | 2 | 2 | Exemplu | |
| 3 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
| 4 | 0 secunde | OK. | 3 | 3 | ||
| 5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0 secunde | OK. | 5 | 5 | ||
| 7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0 secunde | OK. | 5 | 5 | ||
| 9 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0 secunde | OK. | 5 | 5 | ||
| 11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0 secunde | OK. | 5 | 5 | ||
| 13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0 secunde | OK. | 5 | 5 | ||
| 15 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
| 16 | 0.004 secunde | OK. | 5 | 5 | ||
| 17 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 18 | 0.016 secunde | OK. | 5 | 5 | ||
| 19 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 20 | 0.06 secunde | OK. | 5 | 5 | ||
| 21 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 22 | 0.06 secunde | OK. | 5 | 5 | ||
| Punctaj total | 50 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema a1z26 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ă.