Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab6(37)

Snippet info

Language

Cpp

Visibility

public

Author

misha127831

Created

2018-12-20T17:06:34Z

Updated

2018-12-20T17:06:34Z

#include <iostream>
 
int main()
{
    unsigned m, l;
    std::cin >> m >> l;
    unsigned x;
    while (std::cin >> x) {
        if ( x % m == l )
            std::cout << "OK: " << x << std::endl;
    }
    return 0;
}
INFO