读入时可以直接使用long long的读入,会自动跳过空格
由于输出是反方向的,这时我们便可以利用递归的特性来输出
#include <bits/stdc++.h>
using namespace std;
void Read() {
long long x;
if (scanf("%lld", &x) != EOF) {
Read();
printf("%.4f\n", sqrt((double)x));
}
}
int main() {
Read();
return 0;
}