感觉数据水了,以下是我的代码:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int t;
cin >> t;
while (t--)
{
double n, m;
cin >> n >> m;
if (n == 1 && m == 1) cout << "1.000000\n";
else cout << fixed << setprecision(6) << n / 2 << '\n';
}
return 0;
}
提交记录:here
求问 dalao 这题是数据特别水,还是解法原因。