본문 바로가기

JiSoo's Devlog

검색하기
JiSoo's Devlog
프로필사진 지숭숭숭

  • 분류 전체보기 (177)
    • 코테준비 (91)
    • Frontend (64)
      • JS (5)
      • React (37)
      • Typescript (14)
      • Redux (4)
      • Next.js (4)
    • Backend (5)
      • Node.js (5)
    • App (16)
      • Dart (4)
      • React Native (12)
    • GraphQL (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2024/02   »
일 월 화 수 목 금 토
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
Tags
  • 주소창해시
  • TypeScript
  • VanilaJS
  • Python
  • nextjs
  • JavaScript
  • react native
  • 코테
  • Frontend
  • dart
  • ContextAPI
  • router
  • 백준
  • Redux
  • 파이썬
  • CSS
  • HTML
  • 스크롤구현
  • react
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2024/02/01 (1)

JiSoo's Devlog

[백준 / 파이썬] 11728번 배열 합치기

n, m = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) c = a + b c.sort() # print(*c) print(' '.join(map(str, c))) join을 이용해 리스트 요소를 연결할 수 있다 ! 리스트의 요소가 모두 문자열일 때만 사용 가능하기 때문에 이 문자에서는 map으로 문자열로 만들어준 후 연결 *c 이렇게 해서 리스트 요소를 한 줄로 출력도 가능

코테준비 2024. 2. 1. 11:40
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바