|
|
|
|
|
|
|
Вернуться
| 1 Завгородний Михаил Сергеевич, 03 июля 2018 г. 13:47:23 | |
Вот #include<iostream> #include <vector> #include <algorithm> using namespace std; int main() { int del = 1, con = 0, con2 = 0; vector<int> h; while (del) { cin >> del; h.push_back(del); } int max = 0; for (int i = 1; i < h.size(); i++) { if (h[i] > h[i - 1]) max++; } cout << max << endl; return 0; }
|
|
|
| 2 Козловцев Евгений Витальевич, 09 марта 2018 г. 11:16:18 | |
|
acmp.ru/index.asp?main=task&id_task=1137 *
|
|
|
Чтобы оставить сообщение необходимо зарегистрироваться и авторизоваться!
| | | |