http://codeforces.com/contest/66

A

输入用long double

 1 #include<bits/stdc++.h>
 2 using namespace std;
 3 #define lson l,mid,rt<<1
 4 #define rson mid+1,r,rt<<1|1
 5 #define sqr(x) ((x)*(x))
 6 #define pb push_back
 7 #define eb emplace_back
 8 #define maxn 1000006
 9 #define rep(k,i,j) for(int k=i;k<j;k++)
10 typedef long long ll;
11 typedef unsigned long long ull;
12 
13 int main(){
14     #ifndef ONLINE_JUDGE
15         freopen("input.txt","r",stdin);
16     #endif
17     std::ios::sync_with_stdio(false);
18     long double n;
19     cin>>n;
20     if(n>=-128&&n<=127) cout<<"byte"<<endl;
21     else if(n>=-32768&&n<=32767) cout<<"short"<<endl;
22     else if(n>=-2147483648&&n<=2147483647) cout<<"int"<<endl;
23     else if(n<9223372036854775808) cout<<"long"<<endl;
24     else{
25         cout<<"BigInteger"<<endl;
26     }
27 }
View Code

相关文章: