96A

#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main()
{
	string str1;
	string str2;
	int length;
	while(cin>>str1>>str2)
	{
		length=str1.size();
		int i;
		for(i=0; i<length; ++i)
		{
			str1[i]=tolower(str1[i]);
			str2[i]=tolower(str2[i]);
			if((str1[i]-'0')>(str2[i]-'0'))
			{
				cout<<1<<endl;
				break;
			}
			else if((str1[i]-'0') < (str2[i]-'0'))
			{
				cout<<-1<<endl;
				break;
			}
		}
		if(i==length)
			cout<<0<<endl;
	}
	return 0;
}

  

猜你喜欢

转载自www.cnblogs.com/ozxics/p/10656494.html
96A
96
今日推荐