diff --git a/yuna83/README.md b/yuna83/README.md index 68ecc54f..2737efd1 100644 --- a/yuna83/README.md +++ b/yuna83/README.md @@ -31,6 +31,7 @@ | 27차시 | 2024.02.05 | 투포인터 | [좋다](https://www.acmicpc.net/problem/1253)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/129| | 28차시 | 2024.02.07 | 투포인터 | [구명보트](https://school.programmers.co.kr/learn/courses/30/lessons/42885)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/134| | 29차시 | 2024.02.13 | 슬라이딩윈도우 | [블로그](https://www.acmicpc.net/problem/21921)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/136| +| 29차시 | 2024.02.19 | 슬라이딩윈도우 | [도둑](https://www.acmicpc.net/problem/13422)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/141| | 30차시 | 2024.02.19 | 슬라이딩윈도우 | [도둑](https://www.acmicpc.net/problem/13422)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/141| | 31차시 | 2024.02.23 | DFS/BFS | [바이러스](https://www.acmicpc.net/problem/2606)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/145| --- diff --git "a/yuna83/\354\212\254\353\235\274\354\235\264\353\224\251\354\234\210\353\217\204\354\232\260/\353\217\204\353\221\221.py" "b/yuna83/\354\212\254\353\235\274\354\235\264\353\224\251\354\234\210\353\217\204\354\232\260/\353\217\204\353\221\221.py" new file mode 100644 index 00000000..94b8f10d --- /dev/null +++ "b/yuna83/\354\212\254\353\235\274\354\235\264\353\224\251\354\234\210\353\217\204\354\232\260/\353\217\204\353\221\221.py" @@ -0,0 +1,27 @@ +import sys +input=sys.stdin.readline + +t=int(input()) +for i in range(t): + n,m,k=map(int,input().split()) + home=list(map(int,input().split())) + + if m!=n: + for j in range(m-1): + home.append(home[j]) + + start= 0 + end=m-1 + count=sum(home[:m]) + answer=0 + + if count