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