请求加入题解
查看原帖
请求加入题解
1050484
Netherite_Pickaxe楼主2024/9/25 19:24

rt , 我在做题时突然想到了数学练习册上的不一样的公式 , 但用了之后却AC了:

#include<bits/stdc++.h>
using namespace std;
signed main()
{
    double n;
    cin>>n;
    printf("%.5f",5*(n-32)/9.0);
    return 0;
}
#include<bits/stdc++.h>
using namespace std;
signed main()
{
    double n;
    cin>>n;
    printf("%.5f",(n-32)/1.8);
    return 0;
}

两个代码都是对的

2024/9/25 19:24
加载中...