#3045
pro3
Se consideră 3 progresii aritmetice de numere naturale nenule. Notăm cu P
i
, 1 ≤ i ≤ 3
, mulțimile formate cu elementele progresiei i
. Fie P = P
1
\( \bigcup \) P
2
\( \bigcup \) P
3
reuniunea mulțimilor P
1
, P
2
, P
3
. Să se determine cardinalul mulțimii P
.
Problema | pro3 | Operații I/O |
pro3.in /pro3.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50057881 | Utilizator | |
Fișier | pro3.cpp | Dimensiune | 2.78 KB |
Data încărcării | 25 Martie 2024, 18:40 | Scor / rezultat | 44 puncte |
pro3.cpp: In function 'int main()': pro3.cpp:17:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<n[1] && nr<=1ULL*(a[1]+r[1])*(a[2]+r[2]) && poz2==-1) ^ pro3.cpp:38:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<n[2] && nr<=1ULL*(a[2]+r[2])*(a[3]+r[3]) && poz2==-1) ^ pro3.cpp:59:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<n[3] && nr<=1ULL*(a[1]+r[1])*(a[3]+r[3]) && poz2==-1) ^ pro3.cpp:80:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<n[1] && nr<=1ULL*(a[1]+r[1])*(a[2]+r[2]) && poz2==-1) ^ pro3.cpp:14:9: warning: variable 'pozi1' set but not used [-Wunused-but-set-variable] int pozi1=-1,pozi2=-1; ^ pro3.cpp:14:18: warning: variable 'pozi2' set but not used [-Wunused-but-set-variable] int pozi1=-1,pozi2=-1; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 4 | 4 | ||
1 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
2 | 0 secunde | OK. | 4 | 4 | ||
3 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
4 | 0 secunde | OK. | 4 | 4 | ||
5 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
6 | 0 secunde | OK. | 4 | 4 | ||
7 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
8 | 0 secunde | OK. | 4 | 4 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | OK. | 4 | 4 | ||
11 | 0 secunde | OK. | 4 | 4 | ||
12 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
13 | 0 secunde | OK. | 4 | 4 | ||
14 | 0 secunde | OK. | 4 | 4 | ||
15 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
16 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
17 | 0 secunde | OK. | 4 | 4 | ||
18 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
20 | 0.008 secunde | Raspuns gresit. | 4 | 0 | ||
21 | 0.064 secunde | Raspuns gresit. | 4 | 0 | ||
22 | 0.112 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0.064 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0.088 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 44 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema pro3 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ă.