|
|
back to boardDiscussion of Problem 1607. Taxi1607. Такси. Ошибка на шестом тесте. Помогите ! #include <iostream> using namespace std; int main() { long long a, b, c, d; int r = 0, g; cin >> a >> b; cin >> c >> d; g = (a + b * (c - a + d) / (b + d)) - ((a + b * (c - a + d) / (b + d)) % b); cout << g << endl; return 0; } Re: 1607. Такси. Ошибка на шестом тесте. Помогите ! Posted by IVA666 2 Oct 2020 16:52 Edited by author 02.10.2020 16:52 |
|
|