P7618 [COCI 2011/2012 #2] FUNKCIJA

Description

Mirko wrote the following function: (C++) ```cpp int fun() { int ret = 0; for (int a = X1; a

Input Format

The first line contains a positive integer $N$. The next $N$ lines each contain $X_i, Y_i$ separated by spaces on the $i$-th line. If both $X_i$ and $Y_i$ are integer constants, then $X_i \le Y_i$.

Output Format

Output one integer in a single line, which is the return value of the function.

Explanation/Hint

#### Constraints For $100\%$ of the testdata, $1 \le N \le 26$. #### Notes The score setting of this problem follows the original COCI problem, with a full score of $150$. Translated from **[COCI2011-2012](https://hsin.hr/coci/archive/2011_2012/) [CONTEST #2](https://hsin.hr/coci/archive/2011_2012/contest2_tasks.pdf)** ___T5 FUNKCIJA___. Translated by ChatGPT 5