#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";
}
72,25(10) = 5*10^-2 + 2*10^-1 + 2*10^0 + 7*10^1
десятичная часть числа - десятки с отрицательной степенью, целая часть - десятки с неотрицательной степенью.
дес. часть равна 0,25. Это равно 0,2+0,05.
0,2 = 2/10 = 2*10^-1
0,05 = 5/100 = 5/10^2 = 5*10^-2.
С целой частью думаю и так должно быть все ясно, не 1 класс)