#include <iostream>
#include <set>
#include <vector>
using namespace std;
struct book{
int name;
int year;
int k;
};
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<book> ans;
int n;
cin >> n;
for(int i = 0; i < n; i++)
{
book bk;
cin >> bk.name >> bk.year >> bk.k;
if(bk.k >= 2 && bk.k <= 10)
ans.push_back(bk);
}
for(auto i: ans)
cout << i.name << " " << i.year << " " << i.k << "\n";
}
#include <iostream>
#include <set>
#include <vector>
using namespace std;
struct book{
int name;
int year;
int k;
};
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<book> ans;
int n;
cin >> n;
for(int i = 0; i < n; i++)
{
book bk;
cin >> bk.name >> bk.year >> bk.k;
if(bk.k >= 2 && bk.k <= 10)
ans.push_back(bk);
}
for(auto i: ans)
cout << i.name << " " << i.year << " " << i.k << "\n";
}
20480×16 бит = 327680 бит ÷8 = 40960 Байт ÷1024 = 40 Кб
ответ: объем статьи = 40 Кбайт
2) 48 Кб ×1024 = 49152 Байт ×8 = 393216 бит - объем статьи в битах
по аналогии с №1 считаем в кодировке Unicode (16 бит на один символ):
393216 = 64×38×х×16 = 38912х
х = 393216÷38912 = 10,1052631578 ≈ 10,1 страниц