#2608
biprime
Se dă n
un număr natural care este produsul a două numere prime distincte, şi m
reprezentând numărul numerelor mai mici sau egale cu n
, prime cu n
. Aflaţi cele două numere prime din descompunerea lui n
.
Problema | biprime | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51423544 | Utilizator | |
Fișier | biprime.cpp | Dimensiune | 370 B |
Data încărcării | 15 Iunie 2024, 07:46 | Scor / rezultat | Eroare de compilare |
biprime.cpp:11:1: error: stray '\302' in program cin>>n>>m; ^ biprime.cpp:11:1: error: stray '\240' in program biprime.cpp:11:1: error: stray '\302' in program biprime.cpp:11:1: error: stray '\240' in program biprime.cpp:12:1: error: stray '\302' in program delta=(n+1-m)*(n+1-m)-4*n; ^ biprime.cpp:12:1: error: stray '\240' in program biprime.cpp:12:1: error: stray '\302' in program biprime.cpp:12:1: error: stray '\240' in program biprime.cpp:13:1: error: stray '\302' in program int rad; ^ biprime.cpp:13:1: error: stray '\240' in program biprime.cpp:13:1: error: stray '\302' in program biprime.cpp:13:1: error: stray '\240' in program biprime.cpp:14:1: error: stray '\302' in program if(delta<0) delta=-delta; ^ biprime.cpp:14:1: error: stray '\240' in program biprime.cpp:14:1: error: stray '\302' in program biprime.cpp:14:1: error: stray '\240' in program biprime.cpp:15:1: error: stray '\302' in program rad=(int)(sqrt(delta)); ^ biprime.cpp:15:1: error: stray '\240' in program biprime.cpp:15:1: error: stray '\302' in program biprime.cpp:15:1: error: stray '\240' in program biprime.cpp:16:1: error: stray '\302' in program int x, y; ^ biprime.cpp:16:1: error: stray '\240' in program biprime.cpp:16:1: error: stray '\302' in program biprime.cpp:16:1: error: stray '\240' in program biprime.cpp:17:1: error: stray '\302' in program x=(n+1-m-rad)/2; ^ biprime.cpp:17:1: error: stray '\240' in program biprime.cpp:17:1: error: stray '\302' in program biprime.cpp:17:1: error: stray '\240' in program biprime.cpp:18:1: error: stray '\302' in program y=(n+1-m+rad)/2; ^ biprime.cpp:18:1: error: stray '\240' in program biprime.cpp:18:1: error: stray '\302' in program biprime.cpp:18:1: error: stray '\240' in program biprime.cpp:19:1: error: stray '\302' in program cout<<x<<" "<<y; ^ biprime.cpp:19:1: error: stray '\240' in program biprime.cpp:19:1: error: stray '\302' in program biprime.cpp:19:1: error: stray '\240' in program biprime.cpp:20:1: error: stray '\302' in program ^ biprime.cpp:20:1: error: stray '\240' in program biprime.cpp:20:1: error: stray '\302' in program biprime.cpp:20:1: error: stray '\240' in program biprime.cpp:20:1: error: stray '\302' in program biprime.cpp:20:1: error: stray '\240' in program biprime.cpp:23:1: error: stray '\302' in program return 0; ^ biprime.cpp:23:1: error: stray '\240' in program biprime.cpp:23:1: error: stray '\302' in program biprime.cpp:23:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema biprime 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ă.