Advertisement
Kevin_Zhang

Untitled

Aug 8th, 2022
1,092
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #ifndef FUNCTION13_H_
  2. #define FUNCTION13_H_
  3. int box_volume (int length, int width, int height);
  4.  
  5. #include <bits/stdc++.h>
  6. using namespace std;
  7.  
  8. int main ()
  9. {
  10.     int n;
  11.     cin >> n;
  12.  
  13.     long long sum = 0;
  14.     for (int i = 0; i < n; i++)
  15.     {
  16.         int a, b, c;
  17.         cin >> a >> b >> c;
  18.         sum += box_volume(a, b, c);
  19.     }
  20.  
  21.     cout << sum << '\n';
  22. }
  23. #endif
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement