这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《神秘问题求问&Hack数据》回复:
@[fangrui02](luogu://user/1032959)好( 已经部室人类了(
在讨论《神秘问题求问&Hack数据》回复:
@[fangrui02](luogu://user/1032959)这里写大于或者小于答案都是错的(
```cpp #include #include #include using namespace std; struct zuoti{ int val; int xb; zuoti(int a,int b){ val=a;xb=b; } bool operator t.val; return xb>t.xb; } }…
在讨论《申必 WA#3 Line1113 Col7 正确6输出5 求调》回复:
把bit删了只跑莫队还是一样的错 ```cpp #include using namespace std; vector >qr,ans; int szsz[100005]; int vis[120005]; int n,a[120005];int K[100005],idx; int sum;int tmp; int…
在讨论《『GTOI』Round 2 赛时答疑帖》回复:
T3如果初始满足答案条件应该输出0还是-1 @[Helenty](luogu://user/1403682)@[HBWH_zzz](luogu://user/342989)
```cpp #include using namespace std; vector >qr,ans; int szsz[100005]; int vis[120005]; int n,a[120005];int K[100005],idx; int sum;int tmp; int now; using pii=p…
1.不要认为排序后$a_{i+1}-a_i \le a_{i+2}-a_{i+1}$ 2.不要在判$m=0$的时候认为$a_{n-1}$随$h_{n-1}$的变化而变化而其它数是恒定的
## 分析 对于每一个限制时间点,求出从上一个限制时间点开始走可以能走到的区间,和该次限制区间的交即为该时间下可能出现的位置区间。如果不相交即为无解。 注意初始化,时间 $0$ 下可能出现的区间为 $[H,H]$。 一定注意判无解的时候还需要输入该组测试数据剩下的限制,并且如果在判断后立即输出的话需要打标记让后面仅输入…
显然直接按照题意模拟。 把 $n$ 转换成二进制(注意要倒序存),从低位到高位七位一分块,最高位的一个块可能不足七位就补 $0$。除最后一个块外其他块加 $128$。 以及需要特判 $n=0$。 ## 代码 在众多可行的实现中选择了最唐的一种。 ```cpp #include using namespace std;…
在讨论《NOIP题公布了吗》回复:
彳亍
在讨论《NOIP题公布了吗》回复:
彳亍@[Francium_](luogu://user/762086)@[bingzhi314](luogu://user/1625089)
WA 后4个点 错的点都是输出小了 ```cpp #include #include #include using namespace std; #define int long long int n; // int a[100005],b[100005]; int pos=0,hzmx[100005][2]; str…
map 可以1.7s 过,multiset会T飞10个点怎么回事( AC: ```cpp #include #define int long long using namespace std; //multiset st[15]; map ,int> mp; int n,m; int a[200005]; int gt…
map 可以1.7s 过,multiset会T飞10个点怎么回事( AC: ```cpp #include #define int long long using namespace std; //multiset st[15]; map ,int> mp; int n,m; int a[200005]; int gt…
```cpp #include #include #include #include using namespace std; int n,m,k; struct zuoti{ int u; int v; int info; }; bool operator b.info; } priority_queue pq; i…
在文章《嗯对,挂完了——CSP 2025 游寄》发表评论:
%%%
在文章《CSP J/S 2025 报废寄》发表评论:
t2 72 tql orz %%% 666
在文章《CSP-J/S 2025 游寄》发表评论:
666
在文章《CSP-J/S 2025 游寄》发表评论:
t3 带上hash判断就没有那个rand了。。。
想写暴戾语言,但是不彳亍。 ## CSP-J T1 T2 水 T3 前缀和 + map/set, $O(n log n)$ 能过。 看到题解才注意到这是哈希表,%%% T4 01背包求方案数,值域到 5000,用 5001 下标表示和大于 5000 的方案数,注意这里转移的时候要多加一遍。 $100 + 100 + 1…
```cpp #include #include #include using namespace std; char s1[1000005],s2[1000005]; int len; int sp[1000005];//max border void Qiu_sp(){ sp[1]=0; for(int i=2;i…
在讨论《求助,为什么strlen会直接RE》回复:
@[Grammar_hbw](luogu://user/856004) 好了( 感谢(((
```cpp #include #include #include using namespace std; char s1[1000005],s2[1000005]; int len; int sp[1000005];//max border void Qiu_sp(){ sp[1]=0; for(int i=2;i…