Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- string s, t;
- cin >> s >> t;
- int a = 0;
- for(int i = 0; i < s.length(); i++){
- if((int)s[i] <= 90 && (int)s[i] >= 65){
- s[i] = (char)((int)s[i]+32);
- }
- if((int)t[i] <= 90 && (int)t[i] >= 65){
- t[i] = (char)((int)t[i]+32);
- }
- }
- if(s == t){
- cout << "0\n";
- } else if(s < t){
- cout << "-1\n";
- } else{
- cout << "1\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement