시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 816 616 591 76.953%

문제

동혁이는 졸업을 하기 위해 일반 화학 실험을 들어야 한다. 마지막 실험은 어떤 혼합물을 만든 뒤 온도를 1분에 한 번씩 잰 후, 1분동안 변화한 온도를 표로 만들어야 한다.

뛰어난 프로그래머인 동혁이는 혼합물의 온도를 자동으로 측정해주는 프로그램을 만들었다. 하지만, 깜빡하고 변화한 온도를 자동으로 계산해주는 프로그램을 만들지 않았다.

동혁이가 측정한 온도가 주어졌을 때, 변화한 온도를 구하는 프로그램을 작성하시오.

입력

입력은 동혁이가 측정한 혼합물의 온도가 순서대로 주어진다. 온도는 -10도와 200도 사이이고, 소수점 둘째짜리까지 적혀져 있을 수도 있다. 마지막 측정 후에는 999가 주어진다. 동혁이는 온도를 적어도 2번 측정했다.

출력

입력으로 주어진 각 온도와 이전 온도와의 차이를 출력한다. 첫 번째 측정할 온도는 이전 온도가 없으니 출력할 필요가 없다. 차이는 항상 소수점 둘째자리까지 출력한다.

예제 입력 1

10.0
12.05
30.25
20
999

예제 출력 1

2.05
18.20
-10.25
W3sicHJvYmxlbV9pZCI6IjQ3NjYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM3N2NcdWJjMTggXHVkNjU0XHVkNTU5IFx1YzJlNFx1ZDVkOCIsImRlc2NyaXB0aW9uIjoiPHA+XHJcblx0XHViM2Q5XHVkNjAxXHVjNzc0XHViMjk0IFx1Yzg3OFx1YzVjNVx1Yzc0NCBcdWQ1NThcdWFlMzAgXHVjNzA0XHVkNTc0IFx1Yzc3Y1x1YmMxOCBcdWQ2NTRcdWQ1NTkgXHVjMmU0XHVkNWQ4XHVjNzQ0IFx1YjRlNFx1YzViNFx1YzU3YyBcdWQ1NWNcdWIyZTQuIFx1YjljOFx1YzljMFx1YjljOSBcdWMyZTRcdWQ1ZDhcdWM3NDAgXHVjNWI0XHViNWE0IFx1ZDYzY1x1ZDU2OVx1YmIzY1x1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