250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 파이썬 슬라이싱
- 백준
- ORDER BY
- map
- 코딩테스트 연습
- pcce 기출문제
- python
- GIT
- 프로그래머스
- Django
- sql
- 데이터
- Len
- html
- 단어 공부
- Python3
- css
- date_format
- 아이엠어바텐더
- 프로젝트
- count
- 설계
- 파이썬 몫
- 파이썬
- YOLOv5
- Join
- SQL 고득점 Kit
- where
- List Comprehension
- 슬라이싱
Archives
- Today
- Total
목록영수증 (1)
nan + nan = 2nan

코드 입력 class var: def __init__(self, price, cnt): self.price = price self.cnt = cnt total = int(input()) total_cnt = int(input()) def val_price(): for i in range(1, total_cnt+1): p, c = map(int, input().split()) globals()[f'stuff_{i}'] = var(p, c) val_total = 0 for g in globals(): if 'stuff' in g: val_total += globals()[g].price * globals()[g].cnt if val_total != total: return print('No') else: r..
Python/백준 알고리즘
2023. 1. 14. 20:01