본문 바로가기

인천의 자유인

검색하기
인천의 자유인
프로필사진 Youngook

  • 분류 전체보기 (86)
    • JAVA (6)
      • JAVA코딩테스트 (6)
    • Python (64)
      • Python코딩테스트 (56)
      • Python공부 (8)
    • 프론트 엔드 (2)
    • 그 외의 공부들 (3)
    • 알고리즘&자료구조 (11)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • python
  • 유사코드
  • 알고리즘 표현
  • 태그
  • 파이썬
  • 프로그래머스
  • 자바
  • 코딩 테스트
  • html
  • import itertools
  • 들여쓰기로 표현한 트리
  • java
  • 알고리즘
  • Import
  • 과일 장수
  • list
  • 유한소수 판별하기
  • LV.1
  • Tree
  • 알고리즘의 조건 5가지
  • 스택
  • 트리
  • Combination
  • 알고리즘의 조건
  • itertools
  • 큐
  • 좋은 알고리즘
  • 리스트
  • 자료구조
  • 코딩테스트
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록시저암호 (1)

인천의 자유인

[Python] 시저 암호 - 프로그래머스(Lv.1)

나의 문제 풀이def solution(s, n): import string answer = '' lower_alpha = list(string.ascii_lowercase) + list(string.ascii_lowercase) upper_alpha = list(string.ascii_uppercase) + list(string.ascii_uppercase) for i in s: if i.isupper() == True: a = upper_alpha.index(i) answer = answer + upper_alpha[a+n] elif i.islower() == True: a = lower_a..

Python/Python코딩테스트 2024. 5. 29. 10:36
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바