일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Combination
- 괄호
- itertools
- 11057
- Android
- 6603
- lcm
- 11053
- LCS
- 매일11시
- Python
- 홈화면
- 9095
- 1260
- expo
- 뒤로가기
- permutation
- 파이썬
- 코테
- 나머지
- 1182
- 11기
- 11054
- 앱
- 순열
- 코틀린
- Kotlin
- 최소공배수
- 백준
- 안드로이드
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