等闲识得TLE,万改千调总是WA⚡~~~ด้้้้้็้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้้้็็ ⎛⎝≥⏝⏝≤⎛⎝⚡
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《为什么?????》回复:
@[Lyx8058](luogu://user/1135241) 把M*2之后就A了,谢谢dalao,可以互关吗。
在讨论《为什么?????》回复:
@[Register_int](luogu://user/406941) 大佬帮帮我呗,一直改不出来。
在讨论《为什么?????》回复:
@[Register_int](luogu://user/406941)
在讨论《为什么?????》回复:
@[Lyx8058](luogu://user/1135241) 不加这个有好多都会WA,之前试过。
在讨论《为什么?????》回复:
@[KobeBeanBryantCox](luogu://user/865625) https://www.luogu.com.cn/record/265051548
在讨论《为什么?????》回复:
@[KobeBeanBryantCox](luogu://user/865625) 我严格按照范围来的,而且用map也不对。
在讨论《为什么?????》回复:
@[Lyx8058](luogu://user/1135241) 改了,没用。
在讨论《为什么?????》回复:
@[Lyx8058](luogu://user/1135241) https://www.luogu.com.cn/record/265024635
在讨论《为什么?????》回复:
@[Lyx8058](luogu://user/1135241) 但我只是定义了一个数组呀
在讨论《为什么?????》回复:
其他都一模一样啊
## 求问为什么多开了变量会T???!!! 第一份代码:注释数组([结果](https://www.luogu.com.cn/record/264880390)) ```cpp #include using namespace std; const int N=1e6+5,M=2e6+5; int f[N],sz[N]…
在讨论《80pts,求调必关》回复:
@[XsIeEiKcEk](luogu://user/1617786)WA,时间已经来到1.00s了
```cpp #include using namespace std; const int N=1e5+5; long long n; double ans1=1e9,ans2=-1e9,x[N],y[N]; int main(void){ ios::sync_with_stdio(0); cin.tie(0),co…
```cpp #include using ll=long long; using namespace std; //set st; #define int long long #define gc() getchar_unlocked() #define pc(x) putchar_unlocked(x) int n…
进入主站 权限提交书面检讨,允许解封
进入主站 权限多次比赛违规
因学术不端而棕名惩罚 14 天
### P14458 [ICPC 2025 Xi'an R] Let' s Make a Convex!题解 ~~真的没有dalao觉得这题和今年CSP-J的T4似曾相识么?~~ #### 思路 - 把木棍长度**按升序排列**。 - **前缀和数组**储存与它前面的木棍长度的和。 - **二分查找**寻找可选的木棍。…
### P14453 [ICPC 2025 Xi'an R] Grand Voting题解 #### [题目传送门](https://www.luogu.com.cn/problem/P14453) #### 思路 先将每位投票者的票数按**升序排列**,分别**由小到大**和**由大到小**遍历票数,接着根据题意判断…
# P7652 [BalticOI 1996] A NICE SEQUENCE (Day 1)题解 ### [题目传送门](https://www.luogu.com.cn/problem/P7652) ~~本蒟蒻的第一个灰题题解。~~ ## 题目简述 本题要求将一个整数序列划分为尽可能少的子序列,每个子序列必须满足:…
### P14326 [JOI2022 预选赛 R2] 地毯 / Carpet题解 #### [题目传送门](https://www.luogu.com.cn/problem/P14326) 这道题的核心是在有 **“颜色交替”** 限制的网格中寻找最短路径,由于每次移动的**代价相同(步数 + 1)**,广度优先搜索…
### P14330 [JOI2021 预选赛 R2] 往返滑道 / Round Sugoroku题解 #### [题目传送门](https://www.luogu.com.cn/problem/P14330) ##### 算法设计 - 核心优化思路 将 **“逐秒移动”** 转化为 **“批量计算单次连续移动的距离”…
```cpp #include using namespace std; int m,n,x,y,c,ans=1e8,f[1005][1005],dx[5]={0,1,-1,0,0},dy[5]={0,0,0,1,-1},mmm[1005][1005]; bool hhh; void dfs(int x,int y,i…
```cpp #include using namespace std; int _,n,ans=0,a[100005],b[100005]; int main() { cin>>_; while(_--){ memset(b,0,sizeof(b)); bool f=0; ans=0; cin>>n; int mx=…
##### 一道签到题…… 只需求有多少个满足条件的 $x$ 即可 ```cpp #include using namespace std; int n,m,cnt; int main() { cin>>m; while(m--){ cnt=0; cin>>n; for(int i=1;i<=n/2;++i){ if(…
### P14129 [SCCPC 2021] True Story题解 这题其实并不难,只需要理解题意就行啦~~~ ```cpp #include using namespace std; const int N=1e5+10; long long n,k,l,f,t[N],p[N],y[N],ans; int ma…
## P14073 [GESP202509 五级] 数字选取 #### 题外话 这题真的能到橙吗…… #### 思路 因为要使得所选取的整数中任意两个不同的整数均互质,所以……找出 $1 \sim n$的素数就行啦~~~ #### Ac code ```cpp #include using namespace std;…
在讨论《警示后人,记得开ll!!!》回复:
@[kxkk665](luogu://user/1453218)可以不开……