#3207
Se dau coordonatele şi razele a două cercuri. Să se determine în câte puncte se intersectează cele două cercuri.
| Problema | Cercuri | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #28827518 | Utilizator | |
| Fișier | cercuri.c | Dimensiune | 1.55 KB |
| Data încărcării | 19 Martie 2021, 15:49 | Scor/rezultat | 100 puncte |
cercuri.c: In function 'main': cercuri.c:19:9: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] dd = sqrt(dx * dx + dy * dy); ^ cercuri.c:19:14: warning: incompatible implicit declaration of built-in function 'sqrt' [enabled by default] dd = sqrt(dx * dx + dy * dy); ^ cercuri.c: At top level: cercuri.c:68:1: warning: "/*" within comment [-Wcomment] /** ^ cercuri.c: In function 'main': cercuri.c:10:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf%lf", &r1, &x1, &y1); ^ cercuri.c:11:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf%lf", &r2, &x2, &y2); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | ||
| 2 | 0 secunde | OK. | 5 | 5 | ||
| 3 | 0 secunde | OK. | 5 | 5 | ||
| 4 | 0 secunde | OK. | 5 | 5 | ||
| 5 | 0 secunde | OK. | 5 | 5 | ||
| 6 | 0 secunde | OK. | 5 | 5 | ||
| 7 | 0 secunde | OK. | 5 | 5 | ||
| 8 | 0 secunde | OK. | 5 | 5 | ||
| 9 | 0 secunde | OK. | 5 | 5 | ||
| 10 | 0 secunde | OK. | 5 | 5 | ||
| 11 | 0 secunde | OK. | 5 | 5 | ||
| 12 | 0 secunde | OK. | 5 | 5 | ||
| 13 | 0 secunde | OK. | 5 | 5 | ||
| 14 | 0 secunde | OK. | 5 | 5 | ||
| 15 | 0 secunde | OK. | 5 | 5 | ||
| 16 | 0 secunde | OK. | 5 | 5 | ||
| 17 | 0 secunde | OK. | 5 | 5 | ||
| 18 | 0 secunde | OK. | 5 | 5 | ||
| 19 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 20 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cercuri 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ă.