1024*768*16=12582912
12582912*75=943718400 бит / 8 бит = 117964800 байт / 1024байт = 115200 КБайт /1024 КБайт = 112,5 МБайт/с
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
using namespace std;
int main ()
{
short int x1,y1,x2,y2;
cout << "Input x1: ";
cin>> x1;
cout<<endl<<"Input y1: ";
cin>> y1;
cout << "Input x2: ";
cin>> x2;
cout<<endl<<"Input y2: ";
cin>> y2;
if ((abs(x2-x1)!=1) || (abs(y2-y1) !=2))
{cout<<"NOT";} else
{cout<<"OK"<<endl;}
system("PAUSE");
return 0;
Гипертекст - это информация в виде документов, имеющих ссылки на другие документы.
# Python 3.X
source = input('Введите строку: ')
ret = ''
for idx, char in enumerate(source):
try:
next = source[idx + 1]
if char.isdigit() and next.isdigit():
qt = 10 * int(char) + int(next)
next = source[idx + 2]
else:
qt = int(char)
except:
ret += char
else:
ret += next * (qt - 1)
print('Ответ:', ret)