Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- cin>>t;
- for(int i=0;i<t;i++)
- {
- string a,b; int l_a,l_b,k=0;
- cin>>a>>b;
- l_a=a.size(); l_b=b.size();
- while(a[k]=='0')
- a.erase(a.begin());
- while(b[k]=='0')
- b.erase(b.begin());
- if(l_a>l_b)cout<<"Case "<<i+1<<": A"<<endl;
- else if(l_a<l_b)cout<<"Case "<<i+1<<": B"<<endl;
- else if(l_a==l_b)
- {
- if(a>b)cout<<"Case "<<i+1<<": A"<<endl;
- else if(a<b)cout<<"Case "<<i+1<<": B"<<endl;
- else if(a==b)cout<<"Case "<<i+1<<": Same"<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement