#4447
cadouri1
Înaintea vacanței de Paște, la școală, s-au primit cadouri pentru elevii din clasa a V-a. Sunt N
cutii cu bomboane și se cunoaște numărul de bomboane din fiecare cutie. Numărul de cutii de bomboane primite de fiecare copil trebuie să fie același. Acest număr trebuie să fie mai mare sau egal cu 2
. Alegerea acestei cutii trebuie făcută astfel încât numărul total de bomboane care se împart să fie cât mai mare.
1) Care este numărul maxim de copii care vor primi cadouri?
2) Care este numărul maxim posibil de bomboane pe care le poate primi un copil în condițiile descrise mai sus?
Pentru ambele cerințe trebuie determinat și numărul de bomboane din cutia care eventual se păstrează.
ONI 2023 clasa a V-a
Problema | cadouri1 | Operații I/O |
cadouri.in /cadouri.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54957321 | Utilizator | |
Fișier | cadouri1.cpp | Dimensiune | 103 B |
Data încărcării | 13 Decembrie 2024, 15:20 | Scor / rezultat | Eroare de compilare |
cadouri1.cpp:1:1: error: stray '\360' in program 😎😉😉😎🎶😃✨🎁🙄🙄😏🙂😑😏😆🤔🙄🙄😌😴😶😚😎😣😥🙄 ^ cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\216' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\211' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\211' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\216' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\216' in program cadouri1.cpp:1:1: error: stray '\266' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\203' in program cadouri1.cpp:1:1: error: stray '\342' in program cadouri1.cpp:1:1: error: stray '\234' in program cadouri1.cpp:1:1: error: stray '\250' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\216' in program cadouri1.cpp:1:1: error: stray '\201' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\204' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\204' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\217' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\202' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\221' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\217' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\206' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\244' in program cadouri1.cpp:1:1: error: stray '\224' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\204' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\204' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\214' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\264' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\266' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\232' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\216' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\243' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\230' in program cadouri1.cpp:1:1: error: stray '\245' in program cadouri1.cpp:1:1: error: stray '\360' in program cadouri1.cpp:1:1: error: stray '\237' in program cadouri1.cpp:1:1: error: stray '\231' in program cadouri1.cpp:1:1: error: stray '\204' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cadouri1 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ă.