Предмет: Информатика, автор: rb5bn8rxpx

в. Напишите код для программы. Томирис спешит в художку. Она выходит из
дома в А часов В минут. До художки добираться к минут и надо быть там в X
часов Y минут. Успеет ли Томирис? Если Томирис успевает то пусть программа
Выдаст «Yes», если нет то «No».

Ответы

Автор ответа: nk451
2

#include <iostream>

using namespace std;

int main() {

    int a, b, k, x, y;

    cin >> a >> b >> k >> x >> y;

    b+=k;

    a+=b/60;

    b%=60;

    if(a<x) {

        cout << "Yes\n";

    } else {

        if (a == x && b <= y) {

            cout << "Yes\n";

        }

        else {

        cout << "No\n";

        }

    }

    return 0;

}

Похожие вопросы
Предмет: Русский язык, автор: regina138
Предмет: Английский язык, автор: nastyavasilyk2000
Прошу помочь даю 85 баллов.

Задание 5. Завершите предложения с помощью следующих союзов или союзных слов. Для правильного выбора обращайте внимание на знаки пунктуации.

because because of so although in spite of in addition however therefore

1) Sales are up 5%. ______, market share is up 2%.

2) Sales are up 5%. ______, market share is down 2%.

3) Sales are up 5%. ______ market share is down 2%.

4) Sales are up 5%. ______a drop in market share of 2%.

5) Sales are up 5%. ______, we should get a bonus at the end of the year.

6) Sales are up 5%. ______we’ll all get a bonus at the end of the year.

7) Sales are up 5%. ______ the new advertising campaign.

8) Sales are up 5%. ______the new advertising campaign has started.


Задание 6.Перепишите предложения в косвенной речи.

1) “I have to be back in the office by four fifteen”.

David said ...

2) “I found out about the problem a long time ago”.

Pierre said…

3) “It’s very busy in here. I’ll call you later”

Peter said...

4) “We received your order last week”.

The sales manager said ...

5) “No, I won’t do it. It’s out of the question.”

He...

6) “Who me? No, I never did it.”

She...

7) “When I finish my presentation, I’m going to have a short break”.

Hesaid...

8) “I like playing tennis but I don’t do it very often”.

Annasaid ...

9) “Did you remember to back up the file?” she asked him.

Sheaskedhim …

10) ”How much did you pay for your car?” Hellen asked me.

Hellen asked me ...