Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
16M
Authors:
Problem types
Allowed languages
Blockly, C, C++, Fortran, Java, JS, Pascal, Python
The fullest piggy bank
It's New Year's Eve. Totos and his sister Annoula, are getting ready to open their piggy banks. However, Totos has been a spendthrift all year round and Annoula managed to save more money than him. How much more money than Totos has Annoula collected throughout the year?
We want to write a program that reads from the STDIN
input positive integers and , separated by a line break character ('\n'
), where is the money that Annoula collected and is the money that Totos collected.
The program will print STDOUT
a positive integer , the difference of Annoula's and Toto's savings.
Attention! Each line of input or output should end with the line change character '\n'
.
Examples
1st
STDIN
73
39
STDOUT
34
2nd
STDIN
108
45
STDOUT
63
Comments