Advertisement
Ilya_konstantinov

Untitled

Jan 12th, 2025
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | Source Code | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4.  
  5. struct Book {
  6.   int page_count;
  7.   std::string name, color;
  8. };
  9.  
  10. #include "func.h"
  11.  
  12. int main(){
  13.   int n; std::cin >> n;
  14.   std::vector<Book> shelf(n);
  15.   for (int i = 0; i < n; ++i) {
  16.     std::cin >> shelf[i].name >> shelf[i].color >> shelf[i].page_count;
  17.   }
  18.   std::cout << green_book_cnt(shelf);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement