문제 링크입니다: https://www.acmicpc.net/problem/1476 Year-E는 15의 배수이고, Year-S는 28의 배수이고, Year-M은 19의 배수이므로 이 모든 조건을 만족하는 년도가 답입니다. #include using namespace std; int E, S, M; int calculateYear(void) { //Year - E = 15*x //Year - S = 28*y //Year - M = 19*z int result; int year = 1; while (1) { if ((year - E) % 15 == 0 && (year - S) % 28 == 0 && (year - M) % 19 == 0) { result = year; break; } year++; } re..