М
Молодежь
К
Компьютеры-и-электроника
Д
Дом-и-сад
С
Стиль-и-уход-за-собой
П
Праздники-и-традиции
Т
Транспорт
П
Путешествия
С
Семейная-жизнь
Ф
Философия-и-религия
Б
Без категории
М
Мир-работы
Х
Хобби-и-рукоделие
И
Искусство-и-развлечения
В
Взаимоотношения
З
Здоровье
К
Кулинария-и-гостеприимство
Ф
Финансы-и-бизнес
П
Питомцы-и-животные
О
Образование
О
Образование-и-коммуникации
homonorolla
homonorolla
09.09.2021 18:02 •  Информатика

Система счисления

10^2+20^8+30^16=х^2 это 1 номер

273^х+568^х=80в^х
определить х это 2 номер

👇
Открыть все ответы
Ответ:
anyanaffanya
anyanaffanya
09.09.2021

1) #include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   string a,b;

   cin >> a >> b;

   if(tolower(a[0]) == tolower(b[b.length()-1]))

       cout << "YES";

   else

       cout << "NO";

}

2)

#include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   string a,b;

   string s = "tros";

   reverse(s.begin(),s.end());

   cout << s << "\n";

   for(int i = s.length()-1; i >= 0; i -= 2)

       cout << s[i];

   for(int i = s.length()-2; i >= 0; i -= 2)

       cout << s[i];

   cout << "\n";

   cout << s[2] << s[1] << s[0] << s[3];

}

3)

#include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   string s;

   set<int> st;

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

       st.insert(i);

   getline(cin,s);

   for(auto i: s)

   {

       if(st.find(int(i)-48) != st.end())

       {

           cout << "YES";

           return 0;

       }

   }

   cout << "NO";

}

4,6(10 оценок)
Ответ:
Larka2017
Larka2017
09.09.2021

1) #include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

  ios_base::sync_with_stdio(0);

  cin.tie(0);

  cout.tie(0);

  string a,b;

  cin >> a >> b;

  if(tolower(a[0]) == tolower(b[b.length()-1]))

      cout << "YES";

      cout << "NO"

2)

#include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

  ios_base::sync_with_stdio(0);

  cin.tie(0);

  cout.tie(0);

  string a,b;

  string s = "tros";

  reverse(s.begin(),s.end());

  cout << s << "\n";

  for(int i = s.length()-1; i >= 0; i -= 2)

      cout << s[i];

  for(int i = s.length()-2; i >= 0; i -= 2)

      cout << s[i];

  cout << "\n";

 cout << s[2] << s[1] << s[0] << s[3];

3)

#include <iostream>

#include <set>

#include <vector>

using namespace std;

signed main() {

  ios_base::sync_with_stdio(0);

  cin.tie(0);

  cout.tie(0);

  string s;

  set<int> st;

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

     st.insert(i);

 getline(cin,s);

 for(

   if(st.find(int(i)-48) != st.end())

          cout << "YES";

          return 0;

  cout << "NO";

4,7(30 оценок)
Новые ответы от MOGZ: Информатика
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ