Facebook
From Sludgy Earthworm, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 209
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main(){
  7. int a,b,c;
  8. cin>>a;
  9. if (a< 1 || a >= 500000000){
  10.     return 0;
  11. }
  12. cin>>b;
  13. if (b< 1 || b >= 500000000){
  14.     return 0;
  15. }
  16. cin>>c;
  17. if (c< 1 || c >= 500000000){
  18.     return 0;
  19. }
  20. cout<<a*b*c<<endl;
  21. cout<<2*(a*b+b*c+a*c);
  22. }
  23.