1476)날짜 계산
https://www.acmicpc.net/problem/1476 이 문제를 읽고 비슷한 문제를 얼핏 떠올랐다. 그 문제는 최대공약수로 풀어내야 했는데 더 생각하길 그만뒀다. 제일 쉬운 방법은 E=0,S=0,M=0부터 1씩 올려가며 입력으로 주어진 E,S,M과 비교해보는 것이다. 123456789101112131415161718#include int main(){ int userE, userS, userM; int E=0,S=0,M=0; int year=0; scanf("%d %d %d",&userE,&userS,&userM); while(!(E==userE && S==userS && M==userM)){ E++; S++; M++; year++; if(E>15) E=1; if(S>28) S=1; if(M..