fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double a,b,c;
  7. cin>>a>>b>>c;
  8. if(abs(a+b-c)<1e-7)
  9. cout<<"YES";
  10. else cout<<"NO";
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5288KB
stdin
2
3
7
stdout
NO