반응형 백준알고리즘윤년1 백준 알고리즘 2753번 윤년 c++ 요약 : 년도 입력 후 이 년도가 윤년인지 아닌지 확인하는 문제 소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include using namespace std; int main(void) { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a; cin >> a; if(a%4==0) { if(a%400==0) cout 2020. 12. 3. 이전 1 다음 반응형