解题思路: 1.题意:判断x^y和y^x谁大谁小. 2.由于x^y和y^x太大了,时间复杂度也不允许,所以做同等变换,比较e^(ylnx)和e^(xlny). 3.即为比较ylnx和xlny的大小. 注意: 由于涉及到浮点数,我们需要处理一下误差,若差值在1e-6范围内视为相等. 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ios::sync_with_stdio(fal…