16МБ=128000000бит
4мин=240сек
128000000:240примерно 533333бит/с
#include <iostream>
using namespace std;
int main()
{
int input;
cin >> input;
if (input == 1){
cout << "Понедельник";
}else if (input == 2){
cout << "Вторник";
}else if (input == 3){
cout << "Среда";
}else if (input == 4){
cout << "Четверг";
}else if (input == 5){
cout << "Пятница";
}else if (input == 6){
cout << "суббота";
}else if (input == 7){
cout << "Воскресенье";
}
return 0;
}
1) 1*2^6+1*2^5+0*2^4+0*2^3+1*2^2+1*2^1+0*2^0=64+32+0+0+4+2+0=102
2)012 = 0∙21+1∙20 = 0+1 = 110
uses graphabc;
begin
SetPenWidth(2);
rectangle (100,100,500,300);
line(300,100,300,300);
moveto(100,100);
lineto(200,50);
lineto(400,50);
lineto(500,100);
line(200,50,300,100);
SetBrushColor(clGray);
rectangle(150,150,250,250);
end.