#include <cstdio>
using namespace std;
int main()
{
int tests;
scanf("%d", &tests);
for (int i = 0; i < tests; i++)
{
int a, b;
scanf("%d%d", &a, &b);
if (!(a & 1))
a++;
if (!(b & 1))
b--;
int num = (b - a) / 2 + 1;
printf("Case %d: %d/n", i + 1, (a + b) * num / 2);
}
return 0;
}
uva10783 Odd Sum
最新推荐文章于 2023-07-03 14:53:44 发布