Skip to content

Commit

Permalink
이슈 #316에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent f5ebc69 commit 1d7e13b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Programmers/짝수는_싫어요.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <string>
#include <vector>

using namespace std;

vector<int> solution(int n) {
vector<int> answer;
for (int i = 1; i <= n; i += 2) {
answer.push_back(i);
}

return answer;
}

0 comments on commit 1d7e13b

Please sign in to comment.