yes
Time Limit: 1 seconds
Memory Limit: 1024 MB
Rating: 800
Problem StatementGiven 2 numbers $A$ and $B$, output their sum and difference. $(-10^9 \le A \le 10^9)$
InputThe first line has integer $A$. The second line has integer $B$.
OutputOn the first line, output $A+B$. On the second line, output $A-B$.
Sample CasesSample Input 1: 2 1 Sample Output 1: 3 1Explanation
$2 + 1 = 3$ $2 - 1 = 1$
SourcesIanOJ Contest #2 (Div. 4) > Problem D1 (Contributed by bronze@HungJan@)
Submit | Back