莽题一时爽,爆零火葬场
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在文章《题解:CF1270H Number of Components》发表评论:
tql Orz
这是一份20pts代码: ```cpp #include #define N 100005 using namespace std; int n,wc=0,ans=0,num,L,f[N],b[N]; struct node{int l,r,v;}s[N],a[N]; bool cmp(node u,node v){r…
在讨论《请问各位大佬这题为啥要用lucas啊》回复:
OK谢谢 Orz%%%
在讨论《如果你80分并WA第四个点》回复:
请问为什么要这么改呢
在文章《题解:P12038 [USTCPC 2025] 送温暖》发表评论:
压行大佬,tql,Orz %%%
在讨论《进食后人:如果你 WA 并 58 分》回复:
精彩
```cpp #include using namespace std; int n,h,f[30],d[30],t[30]; int dp[30][30][205],ans=0; int fk(int x){ if(f[x]%d[x]) return f[x]/d[x]+1; return f[x]/d[x]; }…
```cpp #include #define N 500005 using namespace std; int n,ans=0; bool vis[N]; vector g[N]; int indegree[N]; queue q; void topo() { for(int i=1;i<=n;i++){ if(i…
###### 大佬们能不能帮蒟蒻看看我的代码为啥不出数,我的思路对不对 ``` #include using namespace std; int n,m,a[55][55],ex,ey; bool vis[110][110]; struct node{ int x,y,d,f; node(int xx,int yy,…
``` #include #define N 30005 #define ll long long #define inf 0x3f3f3f3f using namespace std; struct node{ int to,nxt,w; }E[4*N]; int n,m,b,f[N],l,r=0; int head…
原题: ``` 单词接龙是这样一个游戏:从一个单词开始,接下来后一个单词的第一个字母必须与前一个单词的最后一个字母一致。 游戏可以从任何一个单词开始。 任何单词禁止说两遍,游戏中只能使用给定词典中含有的单词。 游戏的复杂度定义为游戏中所使用的单词长度总和。 编写程序,求出使用一本给定的词典来玩这个游戏所能达到的游戏最大…
``` 定义起点 s,终点 t,从起点(初始状态)开始的距离函数 g(x),到终点(最终状态)的距离函数 h(x),h*(x),以及每个点的估价函数 f(x)=g(x)+h(x)。 ``` 这几个函数是什么意思啊,要怎么算啊 还有三角形不等式是啥啊
请各位大佬帮忙看看我这个代码为啥不出数呢? ``` #include using namespace std; int a[5],sb=0; bool flag=0; string s[4]; void print(){ for(int i=1;i<=3;i++) printf("%s\n",s[i].c_str())…
在讨论《请问各位大佬我的代码怎么错的》回复:
大佬们救救孩子啊
在讨论《请问各位大佬我的代码怎么错的》回复:
dfs好像死循环了
``` #include using namespace std; int a[5],sb=0; bool flag=0; string s[4]; void print(){ for(int i=1;i<=3;i++) printf("%s\n",s[i].c_str()); } void dfs(int len,i…
在讨论《蒟蒻问大佬们几个问题》回复:
@[yszs](/user/363980) 谢谢大佬
在讨论《蒟蒻问大佬们几个问题》回复:
用memcpy就能把一个数组接到另个数组上吧
在讨论《蒟蒻问大佬们几个问题》回复:
@[yszs](/user/363980) **~~把一个数组接到另个数组上再sort不行吗~~**
在讨论《蒟蒻问大佬们几个问题》回复:
谢谢
在讨论《蒟蒻再求助》回复:
**谢谢大佬**
在讨论《蒟蒻求助》回复:
**感谢大佬**
在讨论《蒟蒻求助》回复:
可是scanf我昨天在编辑器上试了,它过了呀
先请大佬们看两段代码 ## 第一段: ``` #include #define ll long long #define N 20005 using namespace std; int T,n; ll sum[N],cnt=0; struct node{ int a,b,d; bool operator x.b; }…