Hello world
user910298 input in this problem includes multiple series of number pairs, be sure to read them all, not just the first one
farhad.abbasli remember, you program must not output anything other than the answer, any text prompt, like "enter number between 10 and 99" will be considered part of the answer.
user896933 please read other comments, this question has been answered
RofaMuslum the problem and editorial are correct, please be more specific
dorin умова коректна, якщо у вас виникають труднощі ви можете прочитати розбір до задачі
DarkDevilReal the formula is not correct. For example, you need only 54 matches to make 8 cubes.
Julka_jul the error message is "EOF when reading a line", EOF here stands for End-Of-File. This error means you are trying to read input, but there is nothing to read. Check "Input" tab and make sure there is enough data to read.
Moreover, keep in mind, your program should only output the answer, so the message "Enter quantity of methods:" will be part of the answer.
elliotalders0n It's tricky in every language 🙂 It's one of these problems where the solution is trivial, but it takes a while to understand the statement. I have rewritten the statement in English to sound a bit more natural, but the important part is: the gardener should have used the following amounts of water for each tree . It was raining the first few days, so he skipped them. We need to know how many days the gardener skipped if the total amount of water used per tree is no more than half a bucket.
Andremaxico you can see sample solution in JavaScript on editorial page. You can use process.stdin.on
or scanf
.
user851028 ваша програма виводить слово "vvod" на початку, яке рахується як частина відповіді.
faridabbasova убедитесь, что при запуске указаны входные данные
ruslan_dinits так, у всіх тестах існує трикутник, але у 9 тесті був присутній зайвий пробіл через який ваша програма виконувалась з помилкою. Я виправив тест.
user182029 note that the numbers are fractional
suspicious_villani_964 переконайтесь, що ваш розв'язок працює для та