#3606
limbaj
Definim un limbaj de programare, cu instrucțiuni de atribuire și de decizie. Cunoscând valorile inițiale ale tuturor variabilelor(de la a
la z
), să se determine valorile tuturor variabilelor după execuția unei secvențe de program.
ONI 2006, Clasa a IX-a
Problema | limbaj | Operații I/O |
limbaj.in /limbaj.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #26429514 | Utilizator | |
Fișier | limbaj.cpp | Dimensiune | 1.32 KB |
Data încărcării | 04 Decembrie 2020, 19:36 | Scor / rezultat | 59 puncte |
limbaj.cpp: In function 'int main()': limbaj.cpp:40:26: warning: array subscript has type 'char' [-Wchar-subscripts] in>>b,v[a]=v[b]; ^ limbaj.cpp:40:31: warning: array subscript has type 'char' [-Wchar-subscripts] in>>b,v[a]=v[b]; ^ limbaj.cpp:45:36: warning: array subscript has type 'char' [-Wchar-subscripts] r[++i]=(v[a]==v[b]); ^ limbaj.cpp:45:42: warning: array subscript has type 'char' [-Wchar-subscripts] r[++i]=(v[a]==v[b]); ^ limbaj.cpp:47:40: warning: array subscript has type 'char' [-Wchar-subscripts] r[++i]=(v[a]>v[b]); ^ limbaj.cpp:47:45: warning: array subscript has type 'char' [-Wchar-subscripts] r[++i]=(v[a]>v[b]); ^ limbaj.cpp:48:45: warning: array subscript has type 'char' [-Wchar-subscripts] else r[++i]=(v[a]<v[b]); ^ limbaj.cpp:48:50: warning: array subscript has type 'char' [-Wchar-subscripts] else r[++i]=(v[a]<v[b]); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 3 | 3 | ||
1 | 0 secunde | OK. | 3 | 3 | ||
2 | 0 secunde | OK. | 3 | 3 | ||
3 | 0 secunde | OK. | 3 | 3 | ||
4 | 0 secunde | OK. | 3 | 3 | ||
5 | 0 secunde | OK. | 3 | 3 | ||
6 | 0 secunde | OK. | 3 | 3 | ||
7 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
8 | 0 secunde | OK. | 3 | 3 | ||
9 | 0 secunde | OK. | 3 | 3 | ||
10 | 0 secunde | OK. | 3 | 3 | ||
11 | 0 secunde | OK. | 3 | 3 | ||
12 | 0 secunde | OK. | 3 | 3 | ||
13 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
14 | 0 secunde | OK. | 3 | 3 | ||
15 | 0 secunde | OK. | 3 | 3 | ||
16 | 0 secunde | OK. | 3 | 3 | ||
17 | 0 secunde | OK. | 3 | 3 | ||
18 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
19 | 0 secunde | OK. | 3 | 3 | ||
20 | 0 secunde | OK. | 4 | 4 | ||
21 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
22 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
25 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
26 | 0 secunde | OK. | 4 | 4 | ||
27 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
28 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
29 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 59 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema limbaj 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ă.