#include "iostream"\n#include "algorithm"\nusing namespace std;\n\nint main() {\n int n, R;\n cin >> n >> R;\n \n int max_cuteness = 0;\n for (int i = 0; i < n; i++) {\n int k, p;\n cin >> k >> p;\n if (p <= R) {\n max_cuteness = max(max_cuteness, k);\n }\n }\n \n cout << max_cuteness << endl;\n \n return 0;\n}


原文地址: https://www.cveoy.top/t/topic/pnDF 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录