eolymp
bolt
Try our new interface for solving problems
dərc olunub 15.06.15 11:18:30

in all value of N the answers is same for this problem-2. How we could write code for this?

dərc olunub 14.12.17 23:11:17

странно но как я понял количество дней будет просто n-1 хотя ответ такой не принимает.

dərc olunub 11.05.18 15:58:41

Следует понимать, что всего дней- N

dərc olunub 23.01.19 19:28:31

Нічого не поняв, але зробив задачу з першого разу

dərc olunub 10.09.19 15:11:09

У фразі "загалом під кожне з дерев" головне слово - "загалом". Тобто сумарно під всі дерева.

dərc olunub 01.09.20 12:28:33

А у реченні "Садівник посадив за день N дерев і повинен був вилити під кожен саджанець по відру води." Мається на увазі в цей день, а не за всю історію поливання.

dərc olunub 19.04.22 15:38:14

What is mƏqsəd?

dərc olunub 20.09.22 14:40:20

негри имба

dərc olunub 18.10.22 22:39:00

Я люблю подільський науково-технічний ліцей для обдарованої молоді

dərc olunub 18.10.22 22:40:48

Зварич Назар 10-Фх вчу c++

dərc olunub 29.03.23 13:14:30

N can be 1. This mean - gardener never pour tree because 1/1 >= 1/2. Which answer is right in this case? 1 day, 2 days or 100500 days?

dərc olunub 04.01.24 12:06:35

include <bits/stdc++.h>

using namespace std;

using ll = long long;

int main() { iosbase::syncwith_stdio(0); cin.tie(0); double n, cem = 0, cnt = 0; cin >> n; for(int i=0; i<n; i++){ cem += 1/(n-i); if(cem > 0.5){ break; } cnt++; } cout << n-cnt;

}

dərc olunub 15.03.24 23:25:49

As far as i know, there are not a lot of great online casinos. I've been playing mr bet casino login online casino provider for a long time and can't say anything bad about it.Here you can find everything you want from https://mrbetcanada.com/ the table games to the most popular slots worldwide.

dərc olunub 14.04.24 12:37:38

include <iostream>

using namespace std;

int main() { int n,t; cin>>n; double sum=0; for(int i=n; i>=1; i--) { double p=i; double k=1/p; sum+=k; t=i; if(sum>0.5) break; } cout<<t; }

dərc olunub 14.04.24 12:37:52

include <iostream>

using namespace std;

int main() { int n,t; cin>>n; double sum=0; for(int i=n; i>=1; i--) { double p=i; double k=1/p; sum+=k; t=i; if(sum>0.5) break; } cout<<t; }