fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int count_profit(int length, int price) {
  7. return price * length;
  8. }
  9.  
  10. int main(){
  11. int a, b, c;
  12.  
  13. cin >> a >> b >> c;
  14.  
  15. if (a * b == c){cout << "YES";}
  16. else {cout << "NO";}
  17.  
  18. return 0;
  19.  
  20. }
  21.  
Success #stdin #stdout 0s 5328KB
stdin
16 19 777
stdout
NO