#963
Bazine
La ştrandul Junior din oraşul nostru s-au construit n
bazine pentru înot. Fiecare bazin a fost dotat cu câte un robinet pentru umplerea acestuia cu apă. Între m
perechi distincte de bazine, a fost instalată câte o ţeavă prin care apa din cele două bazine din fiecare pereche să poată circula. Astfel, cele două bazine din pereche pot fi umplute prin deschiderea unui singur robinet.
Administratorul bazei a numerotat bazinele cu numerele distincte de la 1
la n
şi a notat în registrul lui cele m
perechi de numere (x
1
,y
1
)
, (x
2
,y
2
)
,…., (x
m
,y
m
)
corespunzând perechilor de bazine între care a fost instalată câte o ţeavă. Pentru a umple toate bazinele cu apă, administratorul doreşte să deschidă un număr minim de robinete.
Scrieţi un program care să citească numerele naturale n
şi m
, şi cele 2*m
numere naturale x
1
, y
1
, x
2
, y
2
,…., x
m
, y
m
, cu semnificația din enunț, şi care să afişeze cel mai mic număr k
de robinete pe care trebuie să le deschidă administratorul astfel încât să fie umplute cu apă toate bazinele.
Problema | Bazine | Operații I/O |
![]() bazine.in /bazine.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49222115 | Utilizator | |
Fișier | bazine.cpp | Dimensiune | 4.03 KB |
Data încărcării | 20 Februarie 2024, 20:10 | Scor / rezultat | Eroare de compilare |
bazine.cpp:1:1: error: stray '\304' in program Rezolvări ^ bazine.cpp:1:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\305' in program bazine.cpp:965:1: error: stray '\237' in program bazine.cpp:965:1: error: stray '\305' in program bazine.cpp:965:1: error: stray '\237' in program bazine.cpp:965:1: error: stray '\303' in program bazine.cpp:965:1: error: stray '\256' in program bazine.cpp:965:1: error: stray '\303' in program bazine.cpp:965:1: error: stray '\242' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\303' in program bazine.cpp:965:1: error: stray '\216' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\303' in program bazine.cpp:965:1: error: stray '\242' in program bazine.cpp:965:1: error: stray '\305' in program bazine.cpp:965:1: error: stray '\243' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:965:1: error: stray '\304' in program bazine.cpp:965:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\305' in program bazine.cpp:967:1: error: stray '\237' in program bazine.cpp:967:1: error: stray '\303' in program bazine.cpp:967:1: error: stray '\256' in program bazine.cpp:967:1: error: stray '\342' in program bazine.cpp:967:1: error: stray '\200' in program bazine.cpp:967:1: error: stray '\246' in program bazine.cpp:967:1: error: stray '\303' in program bazine.cpp:967:1: error: stray '\242' in program bazine.cpp:967:1: error: stray '\303' in program bazine.cpp:967:1: error: stray '\256' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\303' in program bazine.cpp:967:1: error: stray '\242' in program bazine.cpp:967:1: error: stray '\305' in program bazine.cpp:967:1: error: stray '\243' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\305' in program bazine.cpp:967:1: error: stray '\237' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:967:1: error: stray '\304' in program bazine.cpp:967:1: error: stray '\203' in program bazine.cpp:969:1: error: stray '\305' in program bazine.cpp:969:1: error: stray '\243' in program bazine.cpp:969:1: error: stray '\304' in program bazine.cpp:969:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\305' in program bazine.cpp:971:1: error: stray '\243' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\305' in program bazine.cpp:971:1: error: stray '\237' in program bazine.cpp:971:1: error: stray '\305' in program bazine.cpp:971:1: error: stray '\237' in program bazine.cpp:971:1: error: stray '\342' in program bazine.cpp:971:1: error: stray '\200' in program bazine.cpp:971:1: error: stray '\246' in program bazine.cpp:971:1: error: stray '\310' in program bazine.cpp:971:1: error: stray '\233' in program bazine.cpp:971:1: error: stray '\310' in program bazine.cpp:971:1: error: stray '\233' in program bazine.cpp:971:1: error: stray '\305' in program bazine.cpp:971:1: error: stray '\237' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\305' in program bazine.cpp:971:1: error: stray '\237' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\303' in program bazine.cpp:971:1: error: stray '\256' in program bazine.cpp:971:1: error: stray '\303' in program bazine.cpp:971:1: error: stray '\242' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:971:1: error: stray '\304' in program bazine.cpp:971:1: error: stray '\203' in program bazine.cpp:974:1: error: stray '\310' in program bazine.cpp:974:1: error: stray '\231' in program bazine.cpp:974:1: error: stray '\310' in program bazine.cpp:974:1: error: stray '\233' in program bazine.cpp:974:1: error: stray '\304' in program bazine.cpp:974:1: error: stray '\203' in program bazine.cpp:974:1: error: stray '\304' in program bazine.cpp:974:1: error: stray '\203' in program bazine.cpp:976:1: error: stray '\310' in program bazine.cpp:976:1: error: stray '\231' in program bazine.cpp:977:1: error: stray '\310' in program bazine.cpp:977:1: error: stray '\231' in program bazine.cpp:977:1: error: stray '\310' in program bazine.cpp:977:1: error: stray '\231' in program bazine.cpp:977:1: error: stray '\310' in program bazine.cpp:977:1: error: stray '\233' in program bazine.cpp:977:1: error: stray '\304' in program bazine.cpp:977:1: error: stray '\203' in program bazine.cpp:979:1: error: stray '\310' in program bazine.cpp:979:1: error: stray '\233' in program bazine.cpp:979:1: error: stray '\310' in program bazine.cpp:979:1: error: stray '\231' in program bazine.cpp:979:1: error: stray '\304' in program bazine.cpp:979:1: error: stray '\203' in program bazine.cpp:980:1: error: stray '\342' in program bazine.cpp:980:1: error: stray '\211' in program bazine.cpp:980:1: error: stray '\244' in program bazine.cpp:980:1: error: stray '\342' in program bazine.cpp:980:1: error: stray '\211' in program bazine.cpp:980:1: error: stray '\244' in program bazine.cpp:981:1: error: stray '\342' in program bazine.cpp:981:1: error: stray '\211' in program bazine.cpp:981:1: error: stray '\244' in program bazine.cpp:981:1: error: stray '\342' in program bazine.cpp:981:1: error: stray '\211' in program bazine.cpp:981:1: error: stray '\244' in program bazine.cpp:982:1: error: stray '\304' in program bazine.cpp:982:1: error: stray '\203' in program bazine.cpp:982:1: error: stray '\304' in program bazine.cpp:982:1: error: stray '\203' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\303' in program bazine.cpp:982:1: error: stray '\256' in program bazine.cpp:982:1: error: stray '\303' in program bazine.cpp:982:1: error: stray '\242' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\305' in program bazine.cpp:982:1: error: stray '\237' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\305' in program bazine.cpp:982:1: error: stray '\237' in program bazine.cpp:982:1: error: stray '\342' in program bazine.cpp:982:1: error: stray '\200' in program bazine.cpp:982:1: error: stray '\231' in program bazine.cpp:982:1: error: stray '\305' in program bazine.cpp:982:1: error: stray '\237' in program bazine.cpp:983:1: error: stray '\342' in program bazine.cpp:983:1: error: stray '\211' in program bazine.cpp:983:1: error: stray '\244' in program bazine.cpp:983:1: error: stray '\342' in program bazine.cpp:983:1: error: stray '\211' in program bazine.cpp:983:1: error: stray '\244' in program bazine.cpp:983:1: error: stray '\342' in program bazine.cpp:983:1: error: stray '\211' in program bazine.cpp:983:1: error: stray '\244' in program bazine.cpp:983:1: error: stray '\342' in program bazine.cpp:983:1: error: stray '\211' in program bazine.cpp:983:1: error: stray '\244' in program bazine.cpp:983:1: error: stray '\342' in program bazine.cpp:983:1: error: stray '\211' in program bazine.cpp:983:1: error: stray '\240' in program bazine.cpp:984:1: error: stray '\303' in program bazine.cpp:984:1: error: stray '\242' in program bazine.cpp:984:1: error: stray '\305' in program bazine.cpp:984:1: error: stray '\243' in program bazine.cpp:984:1: error: stray '\304' in program bazine.cpp:984:1: error: stray '\203' in program bazine.cpp:1001:1: error: stray '\310' in program bazine.cpp:1001:1: error: stray '\233' in program bazine.cpp:1002:1: error: stray '\305' in program bazine.cpp:1002:1: error: stray '\237' in program bazine.cpp:1002:1: error: stray '\304' in program bazine.cpp:1002:1: error: stray '\203' in program bazine.cpp:1002:1: error: stray '\303' in program bazine.cpp:1002:1: error: stray '\256' in program bazine.cpp:1002:1: error: stray '\305' in program bazine.cpp:1002:1: error: stray '\243' in program bazine.cpp:1002:1: error: stray '\304' in program bazine.cpp:1002:1: error: stray '\203' in program bazine.cpp:1002:1: error: stray '\304' in program bazine.cpp:1002:1: error: stray '\203' in program bazine.cpp:1004:1: error: stray '\305' in program bazine.cpp:1004:1: error: stray '\237' in program bazine.cpp:1004:1: error: stray '\304' in program bazine.cpp:1004:1: error: stray '\203' in program bazine.cpp:1004:1: error: stray '\303' in program bazine.cpp:1004:1: error: stray '\256' in program bazine.cpp:1004:1: error: stray '\305' in program bazine.cpp:1004:1: error: stray '\243' in program bazine.cpp:1004:1: error: stray '\304' in program bazine.cpp:1004:1: error: stray '\203' in program bazine.cpp:1004:1: error: stray '\304' in program bazine.cpp:1004:1: error: stray '\203' in program bazine.cpp:1006:1: error: stray '\305' in program bazine.cpp:1006:1: error: stray '\237' in program bazine.cpp:1006:1: error: stray '\303' in program bazine.cpp:1006:1: error: stray '\256' in program bazine.cpp:1006:1: error: stray '\304' in program bazine.cpp:1006:1: error: stray '\203' in program bazine.cpp:1006:1: error: stray '\304' in program bazine.cpp:1006:1: error: stray '\203' in program bazine.cpp:1006:1: error: stray '\304' in program bazine.cpp:1006:1: error: stray '\203' in program bazine.cpp:1006:1: error: stray '\305' in program bazine.cpp:1006:1: error: stray '\243' in program bazine.cpp:1008:1: error: stray '\304' in program bazine.cpp:1008:1: error: stray '\203' in program bazine.cpp:1008:1: error: stray '\304' in program bazine.cpp:1008:1: error: stray '\203' in program bazine.cpp:1010:1: error: stray '\303' in program bazine.cpp:1010:1: error: stray '\216' in program bazine.cpp:1017:1: error: stray '\304' in program bazine.cpp:1017:1: error: stray '\203' in program bazine.cpp:1060:1: error: stray '\310' in program bazine.cpp:1060:1: error: stray '\233' in program cc1plus: out of memory allocating 1677721600 bytes after a total of 778240 bytes
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bazine 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ă.