Boolean 댕발자

  • 홈
  • 태그
  • 방명록

map 2

백준[Python] 14425.문자열 집합 - 파이썬

📖 문제 📃 코드 import sys import collections input = sys.stdin.readline N, M = map(int, input().split()) strHash = collections.defaultdict(int) cnt = 0 for _ in range(N): s = input().strip() strHash[s] for _ in range(M): s = input().strip() if s in strHash: cnt += 1 print(cnt) 🔗 링크 https://www.acmicpc.net/problem/14425 14425번: 문자열 집합 첫째 줄에 문자열의 개수 N과 M (1 ≤ N ≤ 10,000, 1 ≤ M ≤ 10,000)이 주어진다. 다음 N개의 줄..

Study & Project ✏️/알고리즘 📋 2022.11.08

백준[Python] 10815.숫자 카드 - 파이썬

📖 문제 📃 코드 import sys n = int(input()) card = list(map(int, sys.stdin.readline().split())) m = int(input()) check = list(map(int, sys.stdin.readline().split())) card.sort() def binarySearch(array, key, start, end): while start key: end = mid-1 elif array[mid] < key: start = mid+1 return None for i in range(m): if binarySearch(card, check[i], 0, n-1) is not None: print(1, end=' ') else: print(0, e..

Study & Project ✏️/알고리즘 📋 2022.11.08
이전
1
다음
더보기
프로필사진

공부, 일상, 하고싶은 얘기, 라즈베리파이, 일렉트론, 크로스컴파일, K-Startup, 스타트업, 창업

  • 분류 전체보기 (218)
    • StartUp 🚀 (65)
      • 예비창업패키지 ✈️ (1)
      • 예비창업자 ⏰ (64)
    • 하고싶은 얘기 (41)
      • 맛집, 후기 모음전 🍽️ (6)
      • 인생얘기 😎 (6)
      • 일상 꿀팁 🍯 (27)
      • 블로그🔥 (2)
    • Study & Project ✏️ (109)
      • 알고리즘 📋 (44)
      • 프로그래머스 PCCP 공부 📅 (7)
      • JavaScript 🐥 (12)
      • electron 🐣 (15)
      • node.js 🐣 (7)
      • Docker (3)
      • nestJS 🐣 (1)
      • Html5, css 🐣 (1)
      • React 🐣 (2)
      • Flutter 🐣 (1)
      • Bug & Report 🐞 (16)
    • RaspberryPi 🛠️ (2)
      • 3b+ (2)

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

최근댓글

Tag

electron, 예비창업자, 사업공고, 백준, 공모전, 라즈베리파이, 창업, 벤처육성지원, Java, 일렉트론, 대스타, 스타트업, 자바, 자바 메소드, 자료구조, 메소드, 예비, 크로스컴파일, K-startup, 지원,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바