wip
Time Limit: 1 seconds
Memory Limit: 128 MB
Rating: 800
Problem StatementIn a game of Pong, there are two players, player $A$ and player $B$. At the end of the game, player $A$ will have score $n$ and player $B$ will have score $m$. The winning player wants to know how much better he / she is relative to the other player. Hence, he / she wants to know the score difference between the two players. Given integers $n$ and $m$, determine the score difference. The score difference must be a positive integer.
InputThe first two lines each contain $n$ and $m$ in that order. $(1 \le n, m \le 10^{18}, n \neq m)$
OutputOutput the answer described in the Problem Statement.
Sample CasesSample Input 1: 6 8 Sample Output 1: 2 Sample Input 2: 32 18 Sample Output 2: 14Explanation
Not available for this problem.
SourcesKL Coding Cup March 2023 > Pong > Problem 1
Submit | Back