PS/Baekjoon Online Judge
[백준 26530] Shipping [Python]
kimyoungrok
2023. 6. 4. 16:50
728x90
풀이
종류와 갯수, 가격을 입력받아서 총 가격을 출력해주면 되는 문제다.
종류를 기억할 필요는 없으니 갯수와 가격으로 총 가격만 빠르게 구해주어 소수점 둘째자리까지 출력해주자.
소스코드
출처
26530번: Shipping
The first line will contain a single integer n that indicates the number of data sets that follow. Each data set will start with a single integer x denoting how many items follow. The next x lines consist of a string, and integer, and a floating point numb
www.acmicpc.net
728x90