123456789101112131415161718192021
#include <iostream> #include <cstdio> using namespace std; int main() { int t; long long a,b; scanf("%d",&t); for(int i=1; i<=t; i++) { scanf("%lld %lld",&a,&b); printf("Case %d: %lld\n",i,a*b); } return 0; }
12345678910111213
// http://ideone.com/GCzHmO #include <iostream> #include <limits> #include <cmath> long long upper_limit = std::pow(10, 18); int main() { std::cout << std::numeric_limits<long long>::max() << '\n'; std::cout << upper_limit << '\n'; std::cout << upper_limit * upper_limit << '\n'; }