Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 데이콘
- Real or Not? NLP with Disaster Tweets
- 프로그래머스
- gs25
- hackerrank
- 코로나19
- 금융문자분석경진대회
- AI 경진대회
- Kaggle
- 파이썬
- Baekjoon
- 백준
- 캐치카페
- Git
- programmers
- 더현대서울 맛집
- 우분투
- 맥북
- PYTHON
- leetcode
- github
- 편스토랑
- ChatGPT
- SW Expert Academy
- dacon
- 자연어처리
- 프로그래머스 파이썬
- Docker
- ubuntu
- 편스토랑 우승상품
Archives
- Today
- Total
목록
반응형
372. Super Pow (1)
반응형
솜씨좋은장씨
[leetCode] 372. Super Pow (Python)
Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. Example 1: Input: a = 2, b = [3] Output: 8 Example 2: Input: a = 2, b = [1,0] Output: 1024 Solution class Solution: def superPow(self, a: int, b: List[int]) -> int: answer = 1 for b_val in b[::-1]: answer = answer * a ** b_val % 1337 a = pow(a, 10) % 133..
Programming/코딩 1일 1문제
2020. 7. 15. 19:12
반응형