#1583
2prim
Se citesc de la tastatură n
numere naturale. Să se determine numarul de numere prime formate din ultimele 2
cifre ale fiecarui număr.
Problema | 2prim | Operații I/O |
2prim.in /2prim.out
|
---|---|---|---|
Limita timp | 0.05 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #44026394 | Utilizator | |
Fișier | prim.cpp | Dimensiune | 572 B |
Data încărcării | 09 Iunie 2023, 10:56 | Scor / rezultat | 0 puncte |
prim.cpp: In function 'int main()': prim.cpp:12:9: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='@'; ^ prim.cpp:12:12: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='@'; ^ prim.cpp:19:9: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='('; ^ prim.cpp:19:12: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='('; ^ prim.cpp:23:9: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]=')'; ^ prim.cpp:23:12: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]=')'; ^ prim.cpp:27:9: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='*'; ^ prim.cpp:27:12: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='*'; ^ prim.cpp:31:9: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='*'; ^ prim.cpp:31:12: warning: array subscript has type 'char' [-Wchar-subscripts] a[i][j]='*'; ^ prim.cpp:37:16: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<a[i][j]<<' '; ^ prim.cpp:37:19: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<a[i][j]<<' '; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 2prim 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ă.