| 1 Маратов Бексултан, 05 июня 2026 г. 14:02:29 |
| пишут условного оператора когда он не пройден про циклы вопше молчу
|
|
|
| 2 Неизвестный, 07 мая 2026 г. 12:47:09 |
| using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); long h = long.Parse(input[0]); long a = long.Parse(input[1]); long b = long.Parse(input[2]); long height = 0; for (int i = 1; ;i++) { height += a; if (height >= h) { Console.WriteLine(i); break; } height -= b; } } }
|
|
|
| 3 Бобиев Ахлиддин, 14 апреля 2026 г. 11:20:17 |
| #include <bits/stdc++.h> using namespace std; int main() { int h,a,b; cin>>h>>a>>b; if (a>=h) { cout << 1; } else if ((h-b)%(a-b)>0) { cout << (h-b)/(a-b)+1; } else { cout<<(h-b)/(a-b); } return 0; }
|
|
|
| 4 Хафизов Хабибулло, 09 апреля 2026 г. 12:19:28 |
| #include <bits/stdc++.h> using namespace std; int main() { int h,a,b; cin>>h>>a>>b; if (a>=h) { cout << 1; } else if ((h-b)%(a-b)>0) { cout << (h-b)/(a-b)+1; } else{ cout<<(h-b)/(a-b); } return 0; }
|
|
|
| 5 Даурен Думанулы, 07 апреля 2026 г. 11:04:19 |
| #include <iostream> using namespace std; int main() { int H, A, B; cin >> H >> A >> B; int days = (H - A + (A - B) - 1) / (A - B) + 1; cout << days << endl; return 0; }
|
|
|
| 6 Расулзода Иброхим, 07 марта 2026 г. 16:50:26 |
| #include <bits/stdc++.h> using namespace std; int main() { int h,a,b; cin>>h>>a>>b; if (a>=h) { cout << 1; } else if ((h-b)%(a-b)>0) { cout << (h-b)/(a-b)+1; }else{ cout<<(h-b)/(a-b); } return 0; }
|
|
|
| 7 Расулов Абдукарим, 16 января 2026 г. 4:36:56 |
| #include<bits/stdc++.h> using namespace std; int main() { long long a,b,c; cin>>a>>b>>c; cout<<(!(a - b)<= 0) * (a - b) / (b - c) + 1 * (1 && ((a - b))) * (!((a - b <= 0)))<<endl; return 0;}
|
|
|
| 8 Нурмухаммад Султонов, 09 января 2026 г. 13:16:19 |
| komu nujno spisat : #include<bits/stdc++.h> using namespace std; int main() { long long a , b , c ; cin >> a >> b >> c ; int s = 0 ; int kol = 0 ; while(s < a){ s += b ; kol ++; if(s >= a){ cout << kol ; return 0; } s -= c ; } }
|
|
|
| 9 Есентуров Айтуар Ернарович, 23 декабря 2025 г. 15:33:45 |
| ильяс а зачем ты скатал?
|
|
|
| 10 Панько Артём Николаевич, 06 декабря 2025 г. 12:05:26 |
| a, b, c = map(int, input().split()) d = 0 d += b e = 0 while a > d: d -= c d += b e += 12 print(e+1)
|
|
|
| 11 Панько Артём Николаевич, 06 декабря 2025 г. 12:03:41 |
| a, b, c = map(int, input().split()) d = 0 d += b e = 0 while a > d: d -= c d += b e += 1 print(e+1)
|
|
|
| 12 Неизвестный, 12 ноября 2025 г. 15:37:43 |
| i hape you can do it .I belive you my friend .DO IT DO IT DO IT!!!!!
|
|
|
| 13 Канивец Алексей Андреевич, 10 ноября 2025 г. 16:34:51 |
| jcfyutgyutyutyuyudtyuutydytutytyudyutduytdutydut
|
|
|
| 14 Волочаев Александр, 29 октября 2025 г. 18:29:41 |
| #include <iostream> using namespace std; int h,v,n; int main() { cin >>h>>a>>b; cout << (!((h-a)<=0))*(h-a)/(a-b)+1 + 1*(1 && ((h-a)%(a-b)))*(!((h-a)<=0)) << endl; return 0; }
|
|
|
| 15 Батяновский Ростислав Витальевич, 28 октября 2025 г. 13:06:48 |
| #include <iostream> using namespace std; int main() { long long a,h, b; cin>>h>>a>>b; if (a>=h) { cout << 1; } else if ((h-b)%(a-b)>0) { cout << (h-b)/(a-b)+1; } else{ cout<<(h-b)/(a-b); } return 0; }
|
|
|
| 16 Алдияр, 27 октября 2025 г. 17:37:52 |
| n,a,b = map(int,input().split()) s =0 c =1 if a >= n: print(1) else: while s < n: s += a if s >=n: break else: s-=b c+=1 print(c) что за ошибка на 5 ом тесте?
|
|
|
| 17 Буркитбаев Бейбит, 18 октября 2025 г. 8:19:39 |
| Что за гении пишут решении с условным оператором, когда по курсу он не пройден
|
|
|
| 18 Толонбаев Умар Алмазбекович, 12 сентября 2025 г. 7:59:50 |
| with open('INPUT.TXT', 'r') as file: H, A, B = map(int, file.readline().split()) day = 0 height = 0 while True: day += 1 height += A if height >= H: break height -= B with open('OUTPUT.TXT', 'w') as file: file.write(str(day))
|
|
|
| 19 Толонбаев Умар Алмазбекович, 12 сентября 2025 г. 7:21:56 |
| import math # Чтение данных with open("INPUT.TXT", "r") as f: H, A, B = map(int, f.read().split()) # Вычисление дней if A >= H: days = 1 else: days = math.ceil((H - A) / (A - B)) + 1 # Запись ответа with open("OUTPUT.TXT", "w") as f: f.write(str(days))
|
|
|
| 20 Толонбаев Умар Алмазбекович, 12 сентября 2025 г. 7:16:16 |
| import math H, A, B = map(int, input().split()) days = math.ceil((H - A) / (A - B)) + 1 print(days)
|
|
|