8年级的蒟蒻 : )
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
我感觉这个方法有点合理 ```cpp #include using namespace std; struct node{ int num,t,f; }a[50005]; bool cmp1(node x,node y){ return x.num >T; while(T--){ int n;cin>>n; for(i…
## Day -??? 初赛过了,pts70.5(有点极限) ## Day -1 下午一点,在dysyzx北校上车,一开始直接社交的手腕,都说自己没带电子产品,实则:cjk&smy&hjz带了电脑,me带了平板,chm带了phone。 由于八年级人数%$2$==$1$,so只能和七年级拼房。刚进房间,就看到七年级的人直…
在讨论《咋办呀?考试的时候把行和列输反了》回复:
@[ikunTLE](luogu://user/890515) CCF have no egg
在讨论《60分求调(好像用的dp)》回复:
@[Yi_chen123](luogu://user/1528634)能在原本的基础上优化吗?
```cpp #include using namespace std; long long n,k,a[500005],dp[500005]; int main(){ cin>>n>>k; for(int i=1;i >a[i]; for(int i=1;i =1;j--){ if(f==k) dp[i]=max(d…
在讨论《90pts求调》回复:
谢谢,已A
```cpp #include using namespace std; int x,y; int f(int x,int y) { if(y==0) return x; return f(y,x%y); } int main() { cin>>x>>y; int ans=0; for(int i=1;i*i<=x*y…
```cpp #include using namespace std; int n,op,a[1000010]; int main(){ ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); cin>>n>>op; for(int i=1;i >a[i]; int l…
# P13753 [题目传送门](https://www.luogu.com.cn/problem/P13753) ## 思路 ### 1.观察中位数的性质: 中位数是排序后位于中间的数。为了使中位数最小,我们需要尽可能让较小的和位于中间位置。 ### 2.处理非负数情况: 如果所有数都是非负的,最优策略是将最小的数单…
# P13752 [题目传送门](https://www.luogu.com.cn/problem/P13752) ### 思路 此题关键在于确定在起点和终点之间的直线数量,包括重合的直线和穿过起点或终点的直线,要注意的是,每条直线都是无限延伸的~~当时本蒟蒻因为这个画错图卡了10分钟~~,所以只需要统计起点和终点之间…
在文章《题解:P7345 【DSOI 2021】吟唱的金色花海》发表评论:
%%%
在文章《题解:P7345 【DSOI 2021】吟唱的金色花海》发表评论:
NB
在讨论《求(条)教》回复:
@[fkxr](luogu://user/995934)@[fkxr](luogu://user/995934) 你玩冈易我的世界吗? My ID:yue(e)nze137(括号里那个e有没有忘了)
```cpp #include using namespace std; unsigned long long n,c,a[10100],s; int main(){ cin>>n>>c; for(int i=1;i >a[i]; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++)…
在文章《P1941 [NOIP 2014 提高组] 飞扬的小鸟 C++题解》发表评论:
好新的题解qwq
# [P6317 ](https://www.luogu.com.cn/problem/P6317) ## 解题思路 ### 1. 排序: 首先,我们需要分别对点的横坐标和纵坐标进行排序。排序的目的是为了计算每个点在目标顺序下的位置偏差。使用两次排序:第一次按横坐标 x 排序,第二次按纵坐标 y 排序。 ### 2.…
在讨论《六百六十六(出bug了)》回复:
@[fifast](luogu://user/1402877)
在讨论《六百六十六(出bug了)》回复:
@[ew3www](luogu://user/1160934)
在讨论《六百六十六(出bug了)》回复:
@[hjb13357896690](luogu://user/1288331)
在讨论《六百六十六(出bug了)》回复:
@[Kobe__Bryant](luogu://user/1311981) 对不起啊,过年一直没上洛谷 一定会关注的QAQ
我把数据下下来了,结果明明是对的,但测试结果是WA。 10分求调 ```cpp #include using namespace std; int a[210],b[210],c[210]; string s,ss,sss; int main(){ getline(cin,s); getline(cin,ss); if…
在讨论《66分求调(可恶的TLE)》回复:
@[IAKPSC](luogu://user/1257809) Thank you very much!!!
666 测试点4: 输入200001行 输出57223行 ```cpp #include using namespace std; long long n,a[100001],m; long long maxx(){ long long s=0; for(long long i=0;;i++){ if(a[i]==0)…