fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long a, b;
  6. cin>>a>>b;
  7. long long t=(a*b)%100;
  8. if (t%3==0)
  9. cout<<"YES";
  10. else
  11. cout<<"NO";
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5324KB
stdin
10
10
stdout
YES