#Lutece3029. 再见了,所有的签到题
再见了,所有的签到题
Migrated from Lutece 3029 再见了,所有的签到题
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
第一次打ACM时 并没有什么特别的感觉 因为独属于我的签到题 我早已遇见
恭喜你即将完成暑假前集训的所有专题训练,就让这道题成为我的告别礼物,希望我们可以在暑假集训再次相遇。 求:
。
多组询问。
Input
第一行一个整数,表示有组测试数据。 接下来行,每行两个整数.
Output
共行,每行一个整数,表示答案。
Samples
3
3 5
3 6
3 7
3
1
-1
Constraints
, , .
Resources
2023 UESTC ICPC Training for Math