CF243A The Brand New Function
Description
Polycarpus has a sequence, consisting of $ n $ non-negative integers: $ a_{1},a_{2},...,a_{n} $ .
Let's define function $ f(l,r) $ ( $ l,r $ are integer, $ 1
Input Format
N/A
Output Format
N/A
Explanation/Hint
In the first test case Polycarpus will have 6 numbers written on the paper: $ f(1,1)=1 $ , $ f(1,2)=3 $ , $ f(1,3)=3 $ , $ f(2,2)=2 $ , $ f(2,3)=2 $ , $ f(3,3)=0 $ . There are exactly $ 4 $ distinct numbers among them: $ 0,1,2,3 $ .