Made By Bramble Marshall
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《堆排序和选择排序都挂了,求助》回复:
@[haimingbei](/user/1235026) 不是冒泡排序复杂度O(n^2)啊,而且冒泡排序纯暴力,没什么好练的
在讨论《堆排序和选择排序都挂了,求助》回复:
@[You_Are_The_T0](/user/1025087) (我要是只是为了过这道题而写也不会连着写了2个啊
在讨论《堆排序和选择排序都挂了,求助》回复:
@[You_Are_The_T0](/user/1025087) emmmmmmmm,用sort过模板题?不太好吧,就像二分查找模板题直接用lower_bound
捞一捞[堆排序](https://www.luogu.com.cn/discuss/874775) 不知道为什么挂了 还有选择排序(用分块优化) ```cpp #include #include using namespace std; void choice_sort(int* pInt, int len) { in…
在讨论《警钟长鸣》回复:
@[Bramble_Marshall](/user/1059049) 好像这个函数忘记打后括号了?♂️
在讨论《警钟长鸣》回复:
我记得有些编译器如果没有返回值会CE(没错不是抛WARNING),如果在一个语句内确认一定会退出函数,则仍需要在函数最后加上(任意)返回值 ``` cpp int check(int k) { while (k) { if (k >> 1) return -1; else if (k % 10) return k /…
```cpp #include #include using namespace std; __int128 a, o; // |A| '9') c = getchar(); while (c >= '0' && c num; while (tmp > 1) { num.push(tmp % 10 + '0'); tm…
在讨论《一个飒壁问题,违规紫砂》回复:
@[zhidun](/user/1185873) 我是密码泄露了所以被别人登了我的账号,现在还不清楚是谁,我也懒得改密码?
在讨论《一个飒壁问题,违规紫砂》回复:
@[zhidun](/user/1185873) 被他人~~帮忙~~用你自己的账号抄题解,使你棕名(我被机惨过但没有棕名,我谷的反作弊系统真厉害,还可以辨别机惨???)
在讨论《问》回复:
@[AC_bee](/user/583593) 给定一个严格不降的序列(bushi
在讨论《C++快读快写》回复:
@[zmh20261804](/user/1269730) [读入、输出优化 - OI Wiki](https://oi-wiki.org/contest/io/)
在讨论《又发现一个歪瑞古德的事情》回复:
@[bored_frank](/user/1378783) 这个是ai智能回答,很正常。你可以试着问问ai这个问题:`9.11和9.9哪个更大`,不要用 4omini或4o,用3.5问问,有惊喜
在讨论《问一下latex》回复:
@[x1489631649](/user/780505) 但是洛谷不支持 $\LaTeX$ 格式,只有用 $\$\dots\$$ 的数学公式支持
在讨论《问一下latex》回复:
@[Bramble_Marshall](/user/1059049) \documentclass{article} \begin{document} \begin{eqnarray*} 10^{14} \end{eqnarray*} \end{document}
在讨论《问一下latex》回复:
@[Bramble_Marshall](/user/1059049) 打多了,第二行那个 `\usepackage{ upgreek }` 不需要
在讨论《问一下latex》回复:
@[x1489631649](/user/780505) ``` tex \documentclass{article} \usepackage{ upgreek } \begin{document} \begin{eqnarray*} 10^{14} \end{eqnarray*} \end{document} ``…
在讨论《LCA #11 WA 求调》回复:
为什么我要换头像?因为我不善
在讨论《堆排序,20分,求调!》回复:
现在的代码: ```cpp #include #include using namespace std; vector a; int n; void rebuild(int p, vector & arr, int len) { int mx = p, ls = p * 2, rs = p * 2 + 1; if (l…
在讨论《堆排序,20分,求调!》回复:
@[tongyurui](/user/1031659) 但是还是有一个测试点没过
在讨论《堆排序,20分,求调!》回复:
@[tongyurui](/user/1031659) 刚运行了下,发现我写成降序排序了。。len忘记减了。。
在讨论《堆排序,20分,求调!》回复:
@[tongyurui](/user/1031659) 我也不知道,按理说应该排序的
在讨论《堆排序,20分,求调!》回复:
@[tongyurui](/user/1031659) 将给定的 N N 个数从小到大输出,数之间空格隔开,行末换行且无空格。 Luogu评测机会自动忽略最后一个换行和每行最后一个空格
(我记得堆排序复杂度的确是 $O(n\log n)$ 啊) ```cpp #include #include using namespace std; vector a; int n; void rebuild(int p, vector & arr, int len) { int val = arr[p]; int…
``` cpp #include using namespace std; const int N = 1e5 + 5; struct SegTree { int a[N * 4], d[N * 4], lzy[N * 4]; void pud(int l, int r, int s, int t, int p) {…
``` cpp #include using namespace std; const int N = 1e6 + 5; int a[N]; int n, m; int low_find(int num, int l, int r) { int mid = l + (r - l) / 2; if (l > r) ret…
``` cpp #include using namespace std; const int N = 4e6 + 5; int n, m, as, ai, aj; // ans_sum, ans_i, ans_j int a[N]; int main() { cin >> n >> m; for (int i = 1…
``` cpp #include using namespace std; const int N = 1e5 + 5; int n, a[N]; void quicksort(int a[], int l, int r) { int i = l, j = r, flg = a[(l + r) / 2]; while…
``` cpp #include std::string add(std::string First, std::string Second) { int na = First.size(), nb = Second.size(); int nas = na > nb ? na : nb; int a[nas + 1]…
``` cpp #include using namespace std; int main() { int in_bool, out_bool, bool_ten = 0; string input, answer = ""; cin >> in_bool >> input >> out_bool; for (int…