asadhfdgj
18.03.2020 18:14

Укажи, в каком виде представлена информация в следующем примере:

праздничный звон колоколов

Для ответа используй данные ниже слова:

обонятельная
визуальная
тактильная
аудиальная
научная
личная

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
xmaxim99
13.03.2020 14:04

#include <iostream>

#include <algorithm>

#include <string>

#include <vector>

using namespace std;

int main()

{

    // Номер 1

   vector <string> days;

   for (int i = 0 ; i < 7 ; ++i)

   {

       string temp;

       cin >> temp;

       days.push_back(temp);

   }

   

   

   //Номер 2

   int max1 = -2000000000;

   int max2 = -2000000000;

   vector <int> arr { 15, 48, 0, 144 , 52};

   for(int i = 0 ; i < arr.size() ; ++i)

       max1 = (arr[i] > max1 ? arr[i] : max1);

       

   for(int i = 0 ; i < arr.size() ; ++i)

       max2 = (arr[i] > max2 && arr[i] != max1 ? arr[i] : max2);

   cout << "Максимум 1: " << max1 << " Максимум 2: " << max2;

   

   

   //Номер 3

   vector <int> numbers { 15, 24, 48, -5 , 0 , -10};

   cout << count_if(numbers.begin(), numbers.end(), [] (int a) { return a > 0;});

   

   return 0;

}

0,0(0 оценок)
Ответ:
PokerFresh
20.07.2021 06:14

/** libraries */

#include <iostream>

#include <cmath>

#include <vector>

#include <map>

#include <set>

#include <queue>

#include <stack>

#include <algorithm>

/** libraries */

using namespace std;

/** defines */

#define ll long long

#define ld long double

#define yes cout << "YES" << "\n"

#define no cout << "NO" << "\n"

/** defines */

int a[20];

void solve(){

   ld sum = 0;

   for(auto i: a)

       sum += i;

   ld av = sum / 20;

   int res = 0;

   for(auto i: a)

       if(i < av)

           res++;

   cout << res;

}

signed main() {

   ios_base::sync_with_stdio(false);

   cin.tie(nullptr);

   cout.tie(nullptr);

   for(int i = 0; i < 20; i++)

       cin >> a[i];

   solve();

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота