Calculator Conundrum
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2544
[PDF](https://uva.onlinejudge.org/external/115/p11549.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11549/bbbca0c23761f9509c7562abaf6847d7600424ae.png)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11549/b54de288fa917d597d9504a4e92ebfb9855eeefb.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11549/1afe3f5e98ed8005c1f1378dd09f5fc25b61edec.png)
输入输出样例
输入样例 #1
2
1 6
2 99
输出样例 #1
9
99