Codeforces-SolutionsA/112A Petya And Strings/112A.cpp

12 lines
175 B
C++
Raw Normal View History

2023-06-07 22:14:23 +08:00
#include<bits/stdc++.h>
using namespace std;
int main()
{
2023-06-11 15:38:15 +08:00
char s1[1000],s2[1000];
2023-06-07 22:14:23 +08:00
cin>>s1>>s2;
2023-06-11 15:38:15 +08:00
strlwr(s1);
strlwr(s2);
int c=strcmp(s1,s2);
2023-06-07 22:14:23 +08:00
cout<<c;
}