0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-08 12:58:48 +00:00

768. 忽略大小写比较字符串大小

https://www.acwing.com/problem/content/submission/code_detail/6864516/
This commit is contained in:
Baoshuo Ren 2021-08-03 15:35:53 +08:00 committed by Baoshuo Ren
parent 0930cacc60
commit 4d9199d715
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

13
AcWing/768/768.cpp Normal file
View File

@ -0,0 +1,13 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
string s1, s2;
getline(cin, s1);
getline(cin, s2);
transform(s1.begin(), s1.end(), s1.begin(), ::tolower);
transform(s2.begin(), s2.end(), s2.begin(), ::tolower);
cout << (s1 < s2 ? '<' : (s1 == s2 ? '=' : '>')) << endl;
return 0;
}