Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define x first
- #define y second
- #define y0 hi1
- #define y1 hi2
- #define ll long long
- #define mp make_pair
- #define pb push_back
- #define sqr(a) (a)*(a)
- #define ld long double
- #define all(a) (a).begin(), (a).end()
- using namespace std;
- const int NB = 1e5;
- const int NL = 1e5;
- const int ND = 1e5;
- int score[NB];
- int number_books[NL], signup[NL], books_per_day[NL];
- int books, library, days;
- vector<vector<int>> id;
- int main() {
- ios_base::sync_with_stdio(0);
- freopen("b_read_on.txt", "r", stdin);
- //freopen("b_read_on.out", "w", stdout);
- cin >> books >> library >> days;
- for(int i = 0; i < books; i++){
- cin >> score[i];
- }
- id.resize(library, vector<int>());
- for(int i = 0; i < library; i++){
- cin >> number_books[i] >> signup[i] >> books_per_day[i];
- id[i].resize(number_books[i]);
- for(int j = 0; j < number_books[i]; j++){
- cin >> id[i][j];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement