| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- 합 구하기
- 프로그래머스
- 완전탐색
- 백준
- JPA
- LCM
- C#강의
- 누적합
- unity
- 소수판별
- 브루투포스
- python3
- 파이썬
- c#
- Python
- 연관관계
- Java
- BFS
- popleft
- deque
- appendleft
- 그리디 알고리즘
- 소수찾기
- DP
- mvc
- pypy3
- 우선순위큐
- spring
- 1일1솔
- 인프런
- Today
- Total
목록전체 글 (139)
jae_coding
Unity C # Script의 기본 구성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Unity_lecture : MonoBehaviour { // 최초 1회 실행 void Start() { } // 매 Frame마다 업데이트 void Update() { } } 변수 예를들어 x의 값에 정수 100을 넣고싶다면 타입 변수명 = 정수 + 세미콜론(;)으로 선언을 해주면된다. 흔히 C언어와 변수를 선언하는 것이 동일하다. using System.Collections; using System.Collections.Generic; using UnityEngine; // public class..
문제 문제 링크 코드 # popleft 위쪽에 덱 제거 # appendleft 위쪽에 덱 추가 # pop 아래쪽 덱 제거 # append 아래쪽 덱 추가 import sys from collections import deque input = sys.stdin.readline def push_front(lst, num): lst.appendleft(num) def push_back(lst, num): lst.append(num) def pop_front(lst): if len(lst) != 0: print(lst.popleft()) else: print(-1) def pop_back(lst): if len(lst) != 0: print(lst.pop()) else: print(-1) def size(lst..
문제 문제 링크 코드 import sys from collections import deque input = sys.stdin.readline N, K = map(int, input().split()) lst = deque(i for i in range(1, N+1)) result = list() count = 0 while len(lst) != 0: count += 1 if count % K != 0: lst.append(lst.popleft()) else: result.append(lst.popleft()) ans = "")