I - Дележ яблок 3

mail@pastecode.io avatar
unknown
c_cpp
a year ago
134 B
5
Indexable
Never
#include <iostream>

using namespace std;

int main() {
    int n, k;
    cin >> n >> k;
    cout << (n - k % n) % n;
    return 0;
}