第一次的代码↓
```cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
float x,s;
cin>>x;
s=x/23;
cout<<fixed<<setprecision(8)<<s;
return 0;
}
```
by MikeYSYoung__0419 @ 2024-01-22 10:54:23
不能用cin好像 改成scanf试试?
by Aaa_liang @ 2024-01-22 10:55:10
@[MikeYSYoung__0419](/user/1244088)
by Aaa_liang @ 2024-01-22 10:56:38
@[MikeYSYoung__0419](/user/1244088)
```
#include <stdio.h>
int main(){
long double n;
scanf("%15Lf", &n);
printf("%.8Lf", n / 23);
return 0;
}
```
by IOI_CCF @ 2024-01-22 11:11:04
@[MikeYSYoung__0419](/user/1244088) `cin>>a`
丢精度,`long double` 也过不了
by IOI_CCF @ 2024-01-22 11:12:53
@[IOI_CCF](/user/704275) 啊谢谢
by MikeYSYoung__0419 @ 2024-01-22 11:13:58
@[IOI_CCF](/user/704275) 真的欸 过了
by MikeYSYoung__0419 @ 2024-01-22 11:25:25
@[MikeYSYoung__0419](/user/1244088) ~~给个关呗~~
by IOI_CCF @ 2024-01-22 11:26:45
@[IOI_CCF](/user/704275) o'der
by MikeYSYoung__0419 @ 2024-01-22 11:30:40
@[MikeYSYoung__0419](/user/1244088) thx.
by IOI_CCF @ 2024-01-22 11:31:05