Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <vector>
- struct Book {
- int page_count;
- std::string name, color;
- };
- #include "func.h"
- int main(){
- int n; std::cin >> n;
- std::vector<Book> shelf(n);
- for (int i = 0; i < n; ++i) {
- std::cin >> shelf[i].name >> shelf[i].color >> shelf[i].page_count;
- }
- std::cout << green_book_cnt(shelf);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement