I - Дележ яблок 3
unknown
c_cpp
2 years ago
134 B
19
Indexable
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
cout << (n - k % n) % n;
return 0;
}
Editor is loading...
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
cout << (n - k % n) % n;
return 0;
}