fjx j s g j b
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
## [P13789 「CZOI-R6」游戏](https://www.luogu.com.cn/problem/P13789) 题解 修改日志:2025.10.31:在给[Levi_Ack](https://www.luogu.com.cn/user/508451)讲题的时候,Levi_Ack问我为什么不能用另一种解…
``` #include #define int long long using namespace std; int n,sum; struct node{ int num,id; }a[40]; bool quick_sort(node x,node y){ return x.num >n; for(int i=1…
代码 ```cpp #include #define int long long using namespace std; int n,m; string a[100010]; int b[100010]; bool check(int now,int x){ for(int i=1;i >x)&1; } signed…
数据如下: ``` 3 3 2 2 3 2 1 3 1 1 0 0 0 2 1 2 ``` 题解输出: ``` nuiza ``` 正解: ``` 0 1 1 ``` 建议增加 hack 数据
数据如下: ``` 3 3 2 2 3 2 1 3 1 1 0 0 0 2 1 2 ``` 题解输出: ``` nuiza ``` 正确输出: ``` 0 1 1 ``` 建议增加 hake 数据
在讨论《关于碳硫磷-硫》回复:
盲猜一波,数据特大,正解特难想,结果可以投机取巧确定关键因素(bush
在讨论《LGR-157 赛时答疑帖》回复:
T3中c的用处只有区分样例吗?
在讨论《过了样例,其余全WA,请问是哪个细节上出了问题,请大佬指点。》回复:
```cpp #include using namespace std; int n,c; long long a[200010],ans=0; int main(){ cin>>n>>c; for(int i=1;i >a[i]; } sort(a+1,a+n+1); for(int i=1;i<=n;i++){ a…
在讨论《过了样例,其余全WA,请问是哪个细节上出了问题,请大佬指点。》回复:
upper_bound : 寻找数组中 a 的第一个出现位置 lower_bound:寻找数组中a的最后一个出现位置
在讨论《过了样例,其余全WA,请问是哪个细节上出了问题,请大佬指点。》回复:
我的二分学的不是很好,我当初是用数组的upper_bound 和 lower_bound 函数过的
在讨论《过了样例,其余全WA,请问是哪个细节上出了问题,请大佬指点。》回复:
二分的话,若有多个相同的数,它只会计算其中的一个
在讨论《过了样例,其余全WA,请问是哪个细节上出了问题,请大佬指点。》回复:
有没有一种可能,你输入 3 1 1 1 2 试一试
```cpp #include using namespace std; int m,d,ans; char c; int main(){ cin>>m>>c>>d; if(m>12)ans++; if(m==1||m==3||m==5||m==8||m==7||m==10||m==12){ if(d>31)ans++…