일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- counter
- level4
- Stack
- coding test
- 코딩
- collections
- mysql
- 연습문제
- 프로그래머스
- import re
- coding
- Queue
- lambda
- 데이터분석
- lv4
- time complexity
- 파이썬
- CodingTest
- Level2
- itertools
- python
- 코테
- programmers
- 조합
- 완전탐색
- 코딩테스트
- sql
- join
- 시간복잡도
- BFS
- Today
- Total
목록2016년 (1)
ror_coding
[Programmers] 2016년 - 12901
datetime 라이브러리 사용! strftime을 이용하여 해당 날짜의 요일을 sun,mon,tue 등 축약 요일로 출력할 수 있다. Question 2016년 1월 1일은 금요일입니다. 2016년 a월 b일은 무슨 요일일까요? 두 수 a ,b를 입력받아 2016년 a월 b일이 무슨 요일인지 리턴하는 함수, solution을 완성하세요. 요일의 이름은 일요일부터 토요일까지 각각 SUN,MON,TUE,WED,THU,FRI,SAT 입니다. 예를 들어 a=5, b=24라면 5월 24일은 화요일이므로 문자열 "TUE"를 반환하세요. Point import datetimestrftime(' %a ') Code import datetimedef solution(a, b): return datetime...
Algorithm/Python
2024. 10. 12. 11:03