일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 파이썬머신러닝완벽가이드
- baekjun
- Python
- centuryFromYear
- 2750
- markdown
- 10953
- 피보나치 수
- Counting cells in a blob
- 수 정렬하기
- All Longest Strings
- recursion
- til
- Sequential Search
- data_structure
- shapeArea
- Daily Commit
- adjacentElementsProduct
- almostIncreasingSequence
- codesingal
- 파이썬 포렌식
- 2015 봄학기 알고리즘
- collections.deque
- C++
- flask
- matrixElementsSum
- 백준
- cpp
- Numpy
- codesignal
Archives
- Today
- Total
목록centuryFromYear 1
Introfor
[Intro] centuryFromYear
Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc. 주어진 년도로 세기를 반환하는 문제. 1세기는 1년~100년까지이고, 101년부터 200년까지 2세기를 뜻한다. def centuryFromYear(year): if(year%100==0): return year//100 else: return (year//100)+1 주어진 year가 100으로 나눴을 때 나누어 떨어지면 그 몫이 1세기를 반환하고, 나누어 떨어지지 않으면 ..
Programming_prob/Codesignal
2020. 7. 18. 14:36