fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main() {
  5. long long B, M;
  6.  
  7. cin >>B,M;
  8. long long int sum=(M%5) ;
  9. long long int sum1=(B%7) ;
  10. cout << sum+sum1 ;
  11.  
  12.  
  13. return 0;
  14.  
  15. }
  16.  
  17.  
Success #stdin #stdout 0.01s 5280KB
stdin
13   12
stdout
6