irinaphones8
?>

Выполните арифметическое действие. В ответе укажите получившееся число, основание системы счисления указывать не нужно. 1010001 2* 11011 2

Информатика

Ответы

de1979nis

101000 = 25*1 + 24*0 + 23*1 + 22*0 + 21*0 + 20*0 = 32 + 0 + 8 + 0 + 0 + 0 = 40

11011 = 24*1 + 23*1 + 22*0 + 21*1 + 20*1 = 16 + 8 + 0 + 2 + 1 = 27

40 x 27 = 1080

erere4443

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";

miss1380

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";

}

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Выполните арифметическое действие. В ответе укажите получившееся число, основание системы счисления указывать не нужно. 1010001 2* 11011 2
Ваше имя (никнейм)*
Email*
Комментарий*