#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, t, i = 1;
cin >> t;
while(t--)
{
cin >> a >> b;
int c = abs(a-b);
int r = (c * 4) + (a * 4) + 19;
cout << "Case " << i++ << ": " << r << "\n";
}
return 0;
}
using namespace std;
int main()
{
int a, b, t, i = 1;
cin >> t;
while(t--)
{
cin >> a >> b;
int c = abs(a-b);
int r = (c * 4) + (a * 4) + 19;
cout << "Case " << i++ << ": " << r << "\n";
}
return 0;
}
Comments
Post a Comment