본문 바로가기

하루일문

검색하기
하루일문
프로필사진 support_u

  • 분류 전체보기 (157)
    • algorithm (97)
      • baekjoon (96)
      • sw (1)
    • guide (1)
    • django (11)
    • daliy (0)
    • javascript css (4)
    • pm (40)
      • 얼리버드 퀘스트 (10)
      • TIL (30)
Guestbook
Archives
Recent Posts
«   2025/07   »
일 월 화 수 목 금 토
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
Tags
  • 20305
  • dfs
  • 좌표 정렬
  • 스택
  • multi-image
  • 재귀
  • stack
  • 소수
  • 몇_시간_전에_올렸을까?
  • 그리드
  • counter
  • 이진탐색
  • 10870
  • pypy3
  • 다이나믹 프로그램
  • 2751
  • Django
  • 복습 필수
  • 1015번
  • collborate
  • 백준
  • 람다
  • 이중리스트
  • 다이나믹프로그래밍
  • 13777
  • BFS
  • Python
  • 다이나믹 프로그래밍
  • 13417
  • 파이썬
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록10815 (1)

하루일문

[백준] 10815 숫자카드(파이썬)

문제 10815번: 숫자 카드 첫째 줄에 상근이가 가지고 있는 숫자 카드의 개수 N(1 ≤ N ≤ 500,000)이 주어진다. 둘째 줄에는 숫자 카드에 적혀있는 정수가 주어진다. 숫자 카드에 적혀있는 수는 -10,000,000보다 크거나 같고, 10, www.acmicpc.net 코드 import sys input = sys.stdin.readline N = int(input()) card = list(map(int, input().split())) M = int(input()) card2 = list(map(int, input().split())) dic = {} for i in card: dic[i] = 0 for i in card2: if i in dic: print(1, end=" ") else:..

algorithm/baekjoon 2023. 3. 8. 23:55
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바