...//はいばらあい
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《B3958求调》回复:
[原来激烈的讨论](https://www.luogu.com.cn/discuss/915773)
我同学做[题](https://www.luogu.com.cn/problem/B3958)时 ```cpp #include using namespace std; int t,la,lb; string a,b; bool check(){ bool f=0; if(abs(la-lb)>1)return 0;…
在讨论《过了样例,但wa声一片(悬关)》回复:
见私信 ```cpp #include using namespace std; #define ll long long int n; signed main(){ cin >> n; while (n--){ string a , b; cin >> a >> b; int la = a.size(); int l…
在讨论《rand?随机数?什么原理...(wgzs)》回复:
谢谢二位 七夕快乐呀
在讨论《rand?随机数?什么原理...(wgzs)》回复:
感谢大家... ~~还是谷谷网友热情,同学们一个不理我~~ 修改完毕~~ ```cpp #include #include #include #include using namespace std; int main(){ srand(time(0)); while (1){ int i = rand()%100 +…
# Why!!! [csdn告诉我的啊](https://blog.csdn.net/onion23/article/details/118558454) 我的代码: ```cpp #include #include #include #include using namespace std; int main(){…
在讨论《wai》回复:
建议紫衫
使用bfs 数组 58 pts ```cpp #include using namespace std; int n , a , b; int k[210][2];// 每个楼层能上去或下去的楼层数 int edge[210];// bfs 遍历顺序 bool vis[210];// 判断是否到访 int step[2…
[P1135](https://www.luogu.com.cn/problem/P1135) bfs数组 58pts 谢谢dalao ```cpp #include using namespace std; int n , a , b; int k[210][2]; int edge[210]; bool vis[2…
在讨论《小数该怎么判断相等与否啊?》回复:
浮点数比较不应使用 ```cpp arr[i] == ans; ``` 因为存在精度误差 ```cpp if (abs(arr[i]) - ans < 1e-7 ){ ... } ```
在讨论《小数该怎么判断相等与否啊?》回复:
可以试试gcd ```cpp #include using namespace std; int main() { int a , b , c; cin >> a >> b >> c; if (a > c){ swap ( a , c); } if (a > b ){ swap (a , b); } if (b > c…
在讨论《小数该怎么判断相等与否啊?》回复:
浮点数比较不应使用 ```cpp arr[i] == ans; ``` 因为存在精度误差 ```cpp if (arr[i] - ans < 1e7 ){ ... } ``` 大概这样