fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. // Mengoptimalkan I/O C++
  7. ios_base::sync_with_stdio(false);
  8. cin.tie(NULL);
  9.  
  10. long long N, M;
  11. if (cin >> N >> M) {
  12. long long sisa = M % N;
  13. cout << sisa << "\n";
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5312KB
stdin
8 21
stdout
5