[백준 4766 파이썬] 일반 화학 실험

일단 해볼게·2022년 11월 1일
0

백준

목록 보기
45/132

https://www.acmicpc.net/problem/4766

# 일반 화학 실험
import sys

input = sys.stdin.readline # 시간 단축

ondo = []

while True:
    temperature = float(input())
    ondo.append(temperature)
    if temperature == 999:
        break
    

i = 0

while True:
    if ondo[i+1] == 999 : break
    print("%.2f" %(ondo[i+1]-ondo[i]))
    i+=1
profile
시도하고 More Do하는 백엔드 개발자입니다.

0개의 댓글