#4033
Zar2
Dăm de n
ori cu zarul și însumăm valorile care le obținem, care este probabilitatea ca răspunsul să fie în intervalul [a,b]
?
Problema | Zar2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 0.5 MB
/
Stivă 0.5 MB
|
Id soluție | #49147347 | Utilizator | |
Fișier | zar2.cpp | Dimensiune | 633 B |
Data încărcării | 16 Februarie 2024, 21:51 | Scor / rezultat | 0 puncte |
zar2.cpp: In function 'int main()': zar2.cpp:10:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 2; i <= n; i ++) ^ zar2.cpp:13:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int p = j; p <= n * 6; p ++) ^ zar2.cpp:18:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= n * 6; i ++) ^ zar2.cpp:20:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = a; i <= b; i ++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Exited with error status 127 | 10 | 0 | Exemplu | |
2 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
3 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
4 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
5 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
6 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
7 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
8 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
9 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
10 | 0 secunde | Exited with error status 127 | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Zar2 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ă.