문제 풀이#include using namespace std;int year = 0;int run(int year){ if (year % 4 == 0) { if ((year % 100 != 0) || (year % 400 == 0)) { return 1; } } return 0;}int main(){ cin >> year; int result = run(year); cout
코딩테스트/문제풀이
[백준/2753번/C++] 윤년 NEW
문제 풀이#include using namespace std;int main(){ int targetCount = 0; cin >> targetCount; for (int i = 0; i
[백준/2438번/C++] 별 찍기 - 1 NEW
문제 풀이#include using namespace std;int Add(int _A, int _B){ return _A + _B;}int main(){ int A = 0, B = 0; cin >> A >> B; int result = Add(A, B); cout
[백준/1000번/C++] A + B NEW
문제 풀이#include using namespace std;int main(){ ios::sync_with_stdio(0); cin.tie(0); cout
[백준/2557번/C++] Hello World NEW