반응형
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 | 31 |
Tags
- 친절한 설명
- c언어
- greedy
- 문제풀이
- C Programming
- 문자열
- Python
- 10926
- C 언어
- 그리디
- Baekjoon
- 초보
- Beakjoon
- VS
- 입문
- 파이썬
- 설명
- HTML
- C
- CSS
- 꾸준히
- 알고리즘
- Implemention
- 10807
- 백준
- 구현
- 코드엔진
- implement
- 심화1
- 정리
Archives
- Today
- Total
목록피로도 (1)
안경잡이 구루루

https://www.acmicpc.net/problem/22864 22864번: 피로도 첫 번째 줄에 네 정수 $A$, $B$, $C$, $M$이 공백으로 구분되어 주어진다. 맨 처음 피로도는 0이다. www.acmicpc.net 나: a,b,c,m = map(int,input().split()) stress = 0 work = 0 hours=24 while hours !=0: if a > m: break elif stress+a > m: stress -=c hours -=1 if stress m: break elif stress+a > m: stress -=c hours -=1 if stress m 인 상황을 만들지 않기 를 반드시 고려해야한다. 그래서 반복문 while 을 이용해 하루 24시간을 다..
파이썬(Python)/문제풀이(백준,BaekJoon)
2023. 10. 8. 17:45