Cod sursa(job #2259547)

Utilizator Andralex17Andrei Gheorghe Andralex17 Data 13 octombrie 2018 14:19:54
Problema Invers modular Scor 0
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.19 kb
#include <iostream>

using namespace std;

int main()
{
    int a, n, x, y;
    cin >> a >> n >> x >> y;
    while(x<0)
    {
        x=x+n;
    }
    cout << x%n;
    return 0;
}