20210605#(33) 백준 1712 파이썬
https://www.acmicpc.net/problem/1712 1712번: 손익분기점 월드전자는 노트북을 제조하고 판매하는 회사이다. 노트북 판매 대수에 상관없이 매년 임대료, 재산세, 보험료, 급여 등 A만원의 고정 비용이 들며, 한 대의 노트북을 생산하는 데에는 재료비와 www.acmicpc.net import sys # a,b,c=map(int,input().split()) a,b,c=map(int,sys.stdin.readline().split()) if b>=c: print(-1) else: print(int(a/(c-b))+1)
2021. 6. 5.
20210603#(28) 백준 2562 파이썬
https://www.acmicpc.net/problem/2562 2562번: 최댓값 9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램을 작성하시오. 예를 들어, 서로 다른 9개의 자연수 3, 29, 38, 12, 57, 74, 40, 85, 61 이 주어 www.acmicpc.net numList=[] for i in range(9): numList.append(int(input())) print(max(numList)) print(numList.index(max(numList))+1)
2021. 6. 3.