题解列表
【稳定做法】求小数的某一位-模拟列竖式
摘要:前排题解基本用浮点数运算,但是对于 $$ n \leq 10000$$ 的数据范围来说理论上都是错误的,无论是 `double` 还是 `long double` 在 $$ 10 ^ {10000}$……
鸡尾酒疗法题解-浮点数运算
摘要:#### 参考代码
```
#include
int main() {
int n;
double x, y;
scanf("%d%lf%lf", &n, &x, &y);
……
c++字符串简单解法 遍历字符串
摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str……
2757: 浮点数向零舍入
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double ……
2620: 蓝桥杯2021年第十二届国赛真题-大写
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
strin……
编写题解 2554: 交点
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
doubl……
2547: [CSP-J2019] 数字游戏
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
string str;
int cou……
2544: N以内累加求和
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
int n,sum=0;
cin>>n……
2543: 简单计算机器实现
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int a……