fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. long long a,b,c,d;
  4. int main(){
  5. ios::sync_with_stdio(false);
  6. cin.tie(0);
  7. cout.tie(0);
  8. cin>>a>>b>>c>>d;
  9. if(a*c>INT_MAX || b*d>INT_MAX || d*a>INT_MAX){
  10. cout<<"long long int";
  11. }else{
  12. cout<<"int";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5284KB
stdin
0 2147483647
0 2147483647
stdout
long long int