일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- EC2
- Slack
- KOSDAQ
- header
- Stock
- automated system
- handleMethodsArgumentNotValid
- API
- AWS
- AESCipher
- python
- RecursionError: maximum recursion depth exceeded while calling a Python object
- pyinstaller
- Daishin Securities
- mongodb
- URI
- stock trading
- Rest
- Version Control
- request param
- Web Crawler
- WebServer
- Auto Login
- mime type
- spec
- ExceptionHandler
- The Internet
- Creon
- creon login
- Instance
- Today
- Total
목록Algorithm (3)
Change the Better World
Up Down Left Right n = int(input()) x, y = 1, 1 plans = input().split() dx = [0, 0, -1, 1] dy = [-1, 1, 0, 0] move_types = ['L', 'R', 'U', 'D'] for plan in plans: for i in range(len(move_types)): if plan == move_types[i]: nx = x + dx[i] ny = y + dy[i] break if nx n or ny > n: continue x, y = nx, ny print(x, y) Time N = int(input()) cnt = 0 for i in range(N + 1): for j in ra..
Condition First line, natural number ( N(2 ≤ N ≤ 1,000), M(1 ≤ M ≤ 10,000), K(1 ≤ N ≤ 10,000) ) is divided by a white space Second line, natural number give N-number which is divided by a white space (1 ≤ N_number ≤ 10,000). Always K ≤ M n, m, k = map(int, input().split()) data = list(map(int, input().split())) data.sort() first = data[n - 1] second = data[n - 2] count = int(m / (k + 1)) * k cou..
- what is the GREEDY ALGORITHM? https://en.wikipedia.org/wiki/Greedy_algorithm Greedy algorithm - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search computer science heuristics that makes the locally optimal choice at each stage Greedy algorithms determine the minimum number of coins to give while making change. These are the steps en.wikipedia.org Question1. give ..