just do it
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《有一点不太理解》回复:
@[bianshiyang](luogu://user/920320) 懂了,谢谢
这题在优先队列里,判断蛋糕长度是否要pop掉时为什么要用i-dq.front()+1>m,而是用i-dq.front()>m,这不符合计算蛋糕长度的方式啊 ```cpp #include #include using namespace std; const int N = 5e5 + 5; int n, m, ans…
在讨论《AC了,但不明白过程》回复:
@[cczzss](luogu://user/922278) 好的谢谢
在讨论《AC了,但不明白过程》回复:
我的思路是当有同高的建筑时,用一个海报就可以遮住两个甚至更多,已达到最小的目的,而要保证两个同高的建筑之间能直接连海报,就要保证单调,否则就会需要遍历检查,因此用单调栈
我的第一版 ```cpp #include #include using namespace std; int n, ans = 0; stack s; int main() { cin >> n; for (int i = 1, d, x; i > d >> x; if(!s.empty()&&s.top()>=x)…
[我第一遍代码的提交,两个点TLE](https://www.luogu.com.cn/record/220248633) 只要把输入都换成快读就过了 [第二遍提交,就过了](https://www.luogu.com.cn/record/220250693) 当然还是支持写正解,不要这样偷鸡刷题
``` #include #include using namespace std; const int N = 1505; int n, m, bex, bey; char a[N][N]; int dx[4] = {0, 0, -1, 1}, dy[4] = {-1, 1, 0, 0}; bool vis[N][N…
样例都过了,但只过了#1和#4 ``` #include using namespace std; typedef long long ll; const ll N = 1e8; string s; int a[N], atop = 0, btop = 0; char b[N]; void f(int *a, char…
在讨论《为什么是30分,求教》回复:
@[chenyanpu45](luogu://user/1294445) 谢谢,AC了
在讨论《为什么是30分,求教》回复:
@[chenyanpu45](luogu://user/1294445) 没听懂
```cpp #include using namespace std; typedef long long ll; int main() { ll n, q, v, time = 0, a[100001], j = 1; cin >> n >> q >> v; for (ll i = 0; i > a[0]; if…
在讨论《90分,求教》回复:
@[liuzhuoran141516](luogu://user/1351155) 谢谢
```cpp #include using namespace std; struct student { string name; int egra, cgra, pasa, mon; bool lead, west; }; int sum(student a) { int num = 0; if (a.egra >…
``` #include using namespace std; void sorty(int *a, int d) { for (int i = 1; i = 0 && a[j] > now; j--) a[j + 1] = a[j]; a[j + 1] = now; } } int main() { int a[…
样例和自己随便试的几个数,都没问题 ```cpp #include using namespace std; int weic(int x) { if (x 0;) { x = (x - x % 10) / 10; wei++; } return wei; } int ten(int x, int i) { if (i…
```cpp #include using namespace std; int main() { long long m, n, head[20010], man[20010], min = 100000, cost = 0, mans; bool key = false; cin >> n >> m; for (i…