提交时间:2025-12-26 15:29:24

运行 ID: 78224

#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string str1, str2; getline(cin, str1); getline(cin, str2); // 转换为小写并比较 transform(str1.begin(), str1.end(), str1.begin(), ::tolower); transform(str2.begin(), str2.end(), str2.begin(), ::tolower); if (str1 < str2) { cout << "<"; } else if (str1 > str2) { cout << ">"; } else { cout << "="; } return 0; }