fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <limits>
  4. #include <cmath>
  5.  
  6. using namespace std;
  7.  
  8. long long upper_limit = pow(10, 18);
  9.  
  10. int main()
  11. {
  12. int t;
  13. unsigned int a;
  14. long long b;
  15.  
  16. numeric_limits<long long>::max();
  17.  
  18. scanf("%d",&t);
  19.  
  20. for(int i=1; i<=t; i++)
  21. {
  22. scanf("%d %lld",&a,&b);
  23. if(1<=a && b<=upper_limit)
  24. printf("Case %d: %lld\n",i,a*b);
  25. }
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 3344KB
stdin
1
8 10000000000000000
stdout
Case 1: 80000000000000000