Skip to content

issues Search Results · repo:ndb796/python-for-coding-test language:Python

Filter by

207 results
 (62 ms)

207 results

inndb796/python-for-coding-test (press backspace or delete to remove)

49p에서 연산횟수가 10억이 넘어가면 1초이상 걸리다고 나와있는데 저는 1초에 1억번정도라고 알고 있었습니다. 1억~10억 사이가 다 1초 인것인가요? 아니면 제가 잘못알고 있었던것인지 질문드립니다
  • rkdgusals310
  • Opened 
    on Jan 20
  • #211

안녕하세요. 게임 개발 답안에서 이해 안 가는 부분이 있어 질문 올립니다. 답안 중 아래 조건문에서 if d[nx][ny] == 0 and array[nx][ny] == 0 : nx와 ny는 음수가 나올 수 있는데, 찾아보니 파이썬에서 index가 음수일 경우 배열의 끝으로 돌아가서 조회 결과를 낸다고 합니다. 그렇게 될 경우, 영역을 벗어나는 경우는 ...
  • Lee-jh01
  • Opened 
    on Jun 23, 2024
  • #210

min_value = 1e9 max_value = -1e9 에서 min_value = int(1e9) max_value = int(-1e9) 로 수정해야 정답 판정을 받을 수 있습니다.
  • anywheredoor
  • 1
  • Opened 
    on Apr 16, 2024
  • #209

array에 담은이상 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 (1,1) 북쪽을 보고있는 상태 (0) 에서 이동한다고 가정했을때 (dx,dy)를 (-1,0) 이 아닌 (0,-1) 로 놓아야 합니다. array[1][1] 가 array[1][0] 으로 가는 것이지 array[0][1] 로 가야하는 것이 아니니까요. 아마 가로축을 x로 생각하신 ...
  • justinshin0204
  • Opened 
    on Feb 15, 2024
  • #208

책에서 202p의 중간 단락보다 조금 아래에 문제의 시간 제한은 2초이므로 최악의 경우 3,000만 번 정도의 연산이 필요하다면 아슬아슬하게 시간 초과를 받지 않고 정답 판정을 받을 것이다. 라는 문구가 있는데 여기서 연산 횟수와 시간 제한이 몇 초(이 문제에서는 2초)인지 가지고 시간 내에 문제를 풀 수 있는지 어떻게 계산하나요?
  • passgiant
  • Opened 
    on Feb 12, 2024
  • #207

https://github.com/ndb796/python-for-coding-test/blob/master/13/7.py 여기서 process 인자로 union 도 넘겨줘야 하는 거 아닌가요?? def process(x, y, index, union): 이런 식으로요!
  • minit97
  • Opened 
    on Aug 13, 2023
  • #206

그리디에서 1이 될때까지 문제 질문입니다. 아래 코드는 제가 작성한 코드입니다. 혹시 책의 예제와는 조금 다른데 예시입력시 같은 출력이 됩니다. 아래 코드도 정답이 될까요?? n, m = map(int, input().split()) cnt = 0 while True: if n == 1: break if n % m == 0: ...
  • SUNGMYEONGGI
  • Opened 
    on Jul 12, 2023
  • #205

num = int(input()) h,m,s = 0,0,2 cnt = 0 while h != num: if s == 60: s = 0 m +=1 if m == 60: m = 0 h +=1 if 3 in str(h) +str(m) + str(s): cnt +=1 ...
  • joyoungwook-korean
  • Opened 
    on Jun 10, 2023
  • #204

https://github.com/ndb796/python-for-coding-test/blob/7c35923a691756ce162e4f343d80d21fb6450e24/9/2.java#L56 개선된 다익스트라 자바 코드에서 cost 부분이 dist 가 아닌 d[now] 가 오는게 잘 이해가 안됩니다. 아래 내용의 설명을 봤을때 dist가 d[now] 보다 ...
  • Ahrang777
  • Opened 
    on Apr 19, 2023
  • #203

개선된 다익스트라 자바 코드에서 cost 부분이 dist 가 아닌 d[now] 가 오는게 잘 이해가 안됩니다. int cost = d[now] + graph.get(now).get(j).getDistance(); 아래 내용의 설명을 봤을때 dist가 d[now] 보다 작거나 같은 경우 이후 for문을 돌릴 수 있는 것 같은데 굳이 dist보다 크거나 같은 ...
  • Ahrang777
  • Opened 
    on Apr 19, 2023
  • #202
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub