일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 괄호
- Kotlin
- 매일11시
- 6603
- Android
- 앱
- 1260
- expo
- 11057
- 홈화면
- 파이썬
- 최소공배수
- Python
- 백준
- 11053
- lcm
- 코틀린
- Combination
- 9095
- itertools
- 1182
- 안드로이드
- 순열
- 11기
- permutation
- 뒤로가기
- 코테
- 11054
- 나머지
- LCS
Archives
- Today
- Total
황소개발자
백준 11399 파이썬 python ATM 본문
반응형
1
2
3
4
5
6
7
8
9
10
|
n = int(input())
arr = list(map(int, input().split()))
ans = 0
for i in range(n):
ans += arr[i] * (n - i)
print(ans)
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
그리디는 Greedy 탐욕이다. 시간이 제일 적게 걸리는 사람이 앞으로 올수록 이득이다.
반응형
'백준 문제 풀이' 카테고리의 다른 글
백준 2217 파이썬 python 로프 (0) | 2019.10.30 |
---|---|
백준 5585 파이썬 python 거스름돈 (0) | 2019.10.29 |
백준 1931 파이썬 python 회의실배정 (0) | 2019.10.28 |
백준 11047 파이썬 python 동전 0 @@황소처럼 우직하게@@ (0) | 2019.10.27 |
백준 10844 c++ 쉬운 계단 수 (0) | 2019.10.25 |
Comments