시나위

  • 홈
  • 태그
  • 방명록

빙고 2

[백준] 2628 종이자르기

www.acmicpc.net/problem/2628 import sys input = sys.stdin.readline #sys.stdin = open(".idea/inputs/2628_input1.txt") width, height = map(int, input().split()) width_cut=[0] height_cut=[0] n = int(input()) for _ in range(n): direction, nth = map(int, input().split()) if direction: # 세로 width_cut.append(nth) else: #가로 height_cut.append(nth) width_cut.append(width) width_cut.sort() height_cut.appen..

STUDY/Algorithm 2021.02.10

[백준] 2578 빙고

www.acmicpc.net/problem/2578 import sys def isbingo(_list): result = 0 #1 가로 확인 for i in range(5): for j in range(5): if not _list[i][j]: break else: result += 1 #2 세로 확인 for j in range(5): for i in range(5): if not _list[i][j]: break else: result += 1 #3 대각선 확인 for k in range(5): # 00,11,22,33,44 if not _list[k][k]: break else: result += 1 for k in range(5): #04,13,22,31,40 if not _list[k][4-k]..

STUDY/Algorithm 2021.02.10
이전
1
다음
더보기
프로필사진

하고 싶은 거 다하고 정리하는 블로그

  • 분류 전체보기 (669)
    • STUDY (529)
      • Algorithm (402)
      • C, C++ (7)
      • Python (33)
      • Rust (28)
      • Swift & iOS (16)
      • Web (10)
      • Raspberry Pi (10)
      • Others (23)
    • OTHERS (140)
      • 내 생각 (134)
      • 리뷰 (5)

Tag

dp, python3, C++, python, 다익스트라, 혼공파, 프로그래머스, 그래프탐색, BFS, BOJ, C, baekjoon, 백트래킹, 파이썬, 백준, 시뮬레이션, 브루트포스, dfs, 혼공단, 구현,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바