https://www.acmicpc.net/problem/4375 4375번: 1 2와 5로 나누어 떨어지지 않는 정수 n(1 ≤ n ≤ 10000)가 주어졌을 때, 각 자릿수가 모두 1로만 이루어진 n의 배수를 찾는 프로그램을 작성하시오. www.acmicpc.net x % n = (x % n) % n #include using namespace std; int main() { int n; while (cin >> n) { int one = 1; long long ans = 1; while (1) { if (one % n == 0) { cout