| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 2015 봄학기 알고리즘
- adjacentElementsProduct
- Python
- shapeArea
- matrixElementsSum
- collections.deque
- 10953
- Daily Commit
- cpp
- 파이썬 포렌식
- recursion
- 백준
- baekjun
- centuryFromYear
- codesingal
- Counting cells in a blob
- til
- All Longest Strings
- C++
- Numpy
- 피보나치 수
- Sequential Search
- almostIncreasingSequence
- markdown
- codesignal
- 수 정렬하기
- data_structure
- 파이썬머신러닝완벽가이드
- 2750
- flask
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