Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. #define x first
  4. #define y second
  5. #define y0 hi1
  6. #define y1 hi2
  7. #define ll long long
  8. #define mp make_pair
  9. #define pb push_back
  10. #define sqr(a) (a)*(a)
  11. #define ld long double
  12. #define all(a) (a).begin(), (a).end()
  13.  
  14. using namespace std;
  15.  
  16. const int NB = 1e5;
  17. const int NL = 1e5;
  18. const int ND = 1e5;
  19.  
  20. int score[NB];
  21. int number_books[NL], signup[NL], books_per_day[NL];
  22. int books, library, days;
  23.  
  24. vector<vector<int>> id;
  25.  
  26. int main() {
  27. ios_base::sync_with_stdio(0);
  28. freopen("b_read_on.txt", "r", stdin);
  29. //freopen("b_read_on.out", "w", stdout);
  30.  
  31. cin >> books >> library >> days;
  32.  
  33. for(int i = 0; i < books; i++){
  34. cin >> score[i];
  35. }
  36.  
  37. id.resize(library, vector<int>());
  38. for(int i = 0; i < library; i++){
  39. cin >> number_books[i] >> signup[i] >> books_per_day[i];
  40.  
  41. id[i].resize(number_books[i]);
  42. for(int j = 0; j < number_books[i]; j++){
  43. cin >> id[i][j];
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement