mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 21:08:47 +00:00
768. 忽略大小写比较字符串大小
https://www.acwing.com/problem/content/submission/code_detail/6864516/
This commit is contained in:
parent
0930cacc60
commit
4d9199d715
13
AcWing/768/768.cpp
Normal file
13
AcWing/768/768.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user