#include <iostream> #include <string> using namespace std; int main() { string str1, str2, str3, str4; while (cin >> str1 >> str2 >> str3 >> str4) { if (str3[0] >= str1[0] && str3[0] <= str2[0] || str4[0] >= str1[0] && str4[0] <= str2[0]) cout << "Overlap IP" << endl; else cout << "No Overlap IP" << endl; } return 0; }
点赞 评论

相关推荐

头像
不愿透露姓名的神秘牛友
04-08 00:50
点赞 评论 收藏
转发
牛客网
牛客企业服务