전체 글
-
[python]백준 Deliv-e-droid 28248번알고리즘 문제풀이/백준(파이썬) 2023. 7. 19. 23:30
코드 import sys sys.stdin = open("28248.txt", "r") a=int(input()) b=int(input()) s=a*50-b*10 if a 28248번: Deliv-e-droid There are $5$ packages delivered, so $5 \times 50 = 250$ points are gained. There are $2$ collisions, so $2 \times 10 = 20$ points are lost. Since $5 > 2$, a bonus $500$ points are earned. Therefore, the final score is $250 - 20 + 500 = 730$. www.acmicpc.net
-
[python]백준 폰 노이만과 파리 14924번알고리즘 문제풀이/백준(파이썬) 2023. 7. 18. 23:53
코드 import sys sys.stdin = open("14924.txt", "r") a,b,c=map(int,input().split()) q=c/(a*2) print(int(q*b)) 링크 https://www.acmicpc.net/problem/14924 14924번: 폰 노이만과 파리 역사상 최고의 천재중 하나인 폰 노이만에게는 다음과 같은 재밌는 일화가 있다. 그의 동료는 어느 날 폰 노이만의 천재성을 시험해보기 위해서 다음과 같은 질문을 던졌다. “200마일 길이의 철 www.acmicpc.net
-
[python]백준 Chili Peppers 28249번알고리즘 문제풀이/백준(파이썬) 2023. 7. 17. 22:25
코드 import sys sys.stdin = open("28249.txt", "r") t=int(input()) s=0 for _ in range(t): q=input() if q=="Poblano": s+=1500 elif q=="Mirasol": s+=6000 elif q=="Serrano": s+=15500 elif q=="Cayenne": s+=40000 elif q=="Thai": s+=75000 else: s+=125000 print(s) 링크 https://www.acmicpc.net/problem/28249 28249번: Chili Peppers The first line of input will contain a positive integer $N$, representing the nu..