fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int a,b,c;
  6.  
  7. int main(){
  8. // freopen("input.txt", "r", stdin);
  9. // freopen("output.txt", "w", stdout);
  10.  
  11. cin >> a >> b >> c;
  12.  
  13. if (a*b==c) {cout << "YES";}
  14.  
  15. else {cout << "NO";}
  16.  
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 548KB
stdin
8 54 432
stdout
YES