Skip to content

Commit

Permalink
Merge branch 'main' into origin/16-2secondag
Browse files Browse the repository at this point in the history
  • Loading branch information
2secondag committed Mar 4, 2024
2 parents 9864097 + 9e20445 commit 97954a9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
5 changes: 0 additions & 5 deletions 2secondag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
| 8์ฐจ์‹œ | 2024.01.22 | ๊ตฌํ˜„ | [๋‹จ์–ด ๊ณต๋ถ€] (https://www.acmicpc.net/problem/1157) | [#31](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/31#event-11604202172)|
| 9์ฐจ์‹œ | 2024.01.25 | ์ˆ˜ํ•™ | [๋‹ฌํŒฝ์ด๋Š” ์˜ฌ๋ผ๊ฐ€๊ณ  ์‹ถ๋‹ค] (https://www.acmicpc.net/problem/2869) | [#37](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/37#event-11619409875)|
| 10์ฐจ์‹œ | 2024.01.28 | ๊ตฌํ˜„ | [์Œ๊ณ„] (https://www.acmicpc.net/problem/2920) | [#39](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/39#event-11655882785)|
<<<<<<< Updated upstream
=======
| 11์ฐจ์‹œ | 2024.01.31 | ๋ถ€๋ฃจํŠธํฌ์Šค ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [๋ธ”๋ž™์žญ] (https://www.acmicpc.net/problem/2798) | [#46]()|
| 12์ฐจ์‹œ | 2024.02.15 | ์Šคํƒ | [์Šคํƒ] (https://www.acmicpc.net/problem/10828) | [#58](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/58)|
| 13์ฐจ์‹œ | 2024.02.18 | ๋ธŒ๋ฃจํŠธํฌ์Šค | [์ฒด์ŠคํŒ ๋‹ค์‹œ ์น ํ•˜๊ธฐ] (https://www.acmicpc.net/problem/1018) | [#62](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/62)|
| 14์ฐจ์‹œ | 2024.02.21 | ์ž๋ฃŒ๊ตฌ์กฐ | [์ˆ˜ ์ฐพ๊ธฐ] (https://www.acmicpc.net/problem/1920) | [#63](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/63#issuecomment-1962366605)|
| 15์ฐจ์‹œ | 2024.02.24 | ๊ตฌํ˜„ | [์š”์„ธํ‘ธ์Šค ๋ฌธ์ œ] (https://www.acmicpc.net/problem/11866) | [#65](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/65)|
>>>>>>> Stashed changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sys

N, K = map(int, sys.stdin.readline().split())
people = []

for i in range(1,N+1):
people.append(i)

result = []


index = 0
for i in range(1, N + 1):
index = (index + K - 1) % len(people)
result.append(people.pop(index))

print("<" + ", ".join(map(str, result)) + ">")
24 changes: 24 additions & 0 deletions bomik0221/DP/240224.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <iostream>
#include <vector>

int main() {
int N; std::cin >> N;
std::vector<int> game(N+1, 0);
game[1] = 1; game[3] = 1; //์ƒ๊ทผ์ด๋Š” 1, ์ฐฝ์˜์ด๋Š” 2

for (int i = 2; i <= N; i++) {
if (game[i - 1] == 1) {
game[i] = 2;
if(i+2 <=N) game[i + 2] = 2;
}
else {
game[i] = 1;
if (i + 2 <= N) game[i + 2] = 1;
}
}

if (game[N] == 1) std::cout << "SK";
else std::cout << "CY";

return 0;
}
1 change: 1 addition & 0 deletions bomik0221/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
| 13์ฐจ์‹œ | 2024.02.06 | DFS | [์œ ๊ธฐ๋† ๋ฐฐ์ถ”](https://www.acmicpc.net/problem/1012) | [#51](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/51) |
| 14์ฐจ์‹œ | 2024.02.15 | ์œ„์ƒ์ •๋ ฌ | [์ค„ ์„ธ์šฐ๊ธฐ](https://www.acmicpc.net/problem/2252) | [#57](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/57) |
| 15์ฐจ์‹œ | 2024.02.18 | ์œ„์ƒ์ •๋ ฌ | [๋ฌธ์ œ์ง‘](https://www.acmicpc.net/problem/1766) | [#60](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/60) |
| 16์ฐจ์‹œ | 2024.02.24 | DP | [๋Œ ๊ฒŒ์ž„](https://www.acmicpc.net/problem/9655) | [#67](https://github.com/AlgoLeadMe/AlgoLeadMe-5/pull/67) |
---

0 comments on commit 97954a9

Please sign in to comment.