I - Дележ яблок 3
Anonymous
c_cpp
10/28/2023 9:56 AM
180 B
26
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;
}