这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include #include #include using namespace std; int n,m; int a[102]; int mem[102][102]; //当前到了第x个菜,还剩sm元 int dfs(int x,int sm){ if(mem[x][sm]) return mem…
```cpp #include #include #include using namespace std; int n,f[5010][5010]={0}; int main() { cin>>n; f[1][1]=1; f[2][1]=2; int i=1; for(int k=3;k 0||f[k-2][i]>0…
在讨论《大佬们帮忙解答一下吧,样例是通过的》回复:
@[heyx0201](/user/768951) 感谢感谢/(ㄒoㄒ)/~~
在讨论《大佬们帮忙解答一下吧,样例是通过的》回复:
@[qnqfff](/user/304534) 谢谢大佬,我忽略了这里/(ㄒoㄒ)/~~
在讨论《大佬们帮忙解答一下吧,样例是通过的》回复:
@[qnqfff](/user/304534) 我调用函数的时候直接传入这科的题目数量为啥走不通呢
在讨论《大佬们帮忙解答一下吧,样例是通过的》回复:
work(1,s[i]);换成work(1,i) if(step>n)换成if(step>s[n]) 就通过了是为什么呀
```cpp #include using namespace std; int s[5],t[5][21],l,r,minn=1e9,ans=0; void work(int step,int n){ if(step>n){ minn=min(max(l,r),minn); return; } //左脑计算 l+=t…
在讨论《求助!看着和第一个样例输出结果一样呀,咋一个也通不过》回复:
@[wunaidedanjuan](/user/951032) 万分感谢!!!
```cpp #include using namespace std; int main(){ string s; char word[]={'A','B','C','D','E','F','G','H','I','J', 'K','L','M','N','O','P','Q','R','S','T','U','V'…
在讨论《高精加和高精乘的函数没有问题,但过不了,求助,感谢感谢感谢!!!》回复:
@[YuanJiayan](/user/812740) 感谢!!!
```cpp #include using namespace std; string cheng(string s1,string s2){//高精乘 int a[100000],b[100000],c[100000]; string ans=""; int la,lb,lc; la=s1.length(); lb=…
```cpp #include #include #include using namespace std; int main(){ int m,n,a[10002],b[10002]; cin>>m>>n; for(int i=0;i >a[i]; } for(int i=0;i >b[i]; } sort(a,a+…
在讨论《QwQ,二分,80分,蒟蒻求助(在学二分,所以最好用二分解答QAQ)》回复:
```cpp #include using namespace std; int n; bool f(int mid){ int count=mid,gun=mid; while(gun>=3){ count+=gun/3; gun=gun/3+gun%3; } if(count>=n) return true; re…
```cpp #include using namespace std; int n; bool f(int mid){ int count=mid; int mo=0; while(mid){ mo=mo+mid%3; count+=mo/3; mid=mid/3; count+=mid; } if(count>=n…
```cpp #include #include using namespace std; int compare(char str1,char str2){ switch(str1){ case '+': case '-': if(str2=='('||str2=='#') return 1; else return…
在讨论《不知道哪里写的不对,帮我看看吧,感谢感谢感谢!!!》回复:
@[Neutralized](/user/538609) 当时有点着急了,下次注意
在讨论《不知道哪里写的不对,帮我看看吧,感谢感谢感谢!!!》回复:
@[snipper04](/user/410969) 谢谢谢谢!!!
在讨论《不知道哪里写的不对,帮我看看吧,感谢感谢感谢!!!》回复:
@[违规用户名TWnOO6x*](/user/397282) 谢谢谢谢!!!
```cpp #include #include using namespace std; bool fun(int n){ if(n >n; for(int i=4;i<=n;i+=2){ for(int j=2;j<i;j++){ for(int k=2;k<i;k++){ if((fun(j)!=0)&&(fun…
在讨论《各位帮我看看我这样写为啥不对y呀》回复:
@[w23c3c3](/user/109942) 感谢感谢感谢
在讨论《各位帮我看看我这样写为啥不对y呀》回复:
@[小小蒟蒻一只](/user/366254) 我糊涂了 感谢感谢感谢!!
在讨论《各位帮我看看我这样写为啥不对y呀》回复:
@[owo_ImposterAnYu_owo](/user/510555) 感谢感谢感谢!!!
```cpp #include using namespace std; int a[3000]; int main() { int x,y,sum=0,k=1; cin>>x>>y; for(int i=x;i<=y;i++){ if((x%4==0&&x%100!=0)||x%400==0){ sum++; a[k…
在讨论《还是想不出来我的代码哪里出了问题,求助各位,感谢感谢感谢!!!》回复:
@[snipper04](/user/410969) 万分感谢万分感谢!!!
```cpp #include #include using namespace std; int main(){ string s,b; int k=0,len,max=0,min=105,code; cin>>s; len=s.length(); for(int i=0;i =max) max=b[i]; } fo…
在讨论《帮我看看我的代码吧,只有50分,孩子实在想不出来了》回复:
@[happypigIG](/user/638119) 好的谢谢谢谢
在讨论《帮我看看我的代码吧,只有50分,孩子实在想不出来了》回复:
@[mssie](/user/629986) ?????
```cpp #include #include using namespace std; int main(){ string s,b; int k=0,len,max=0,min=105,code; cin>>s; len=s.length(); for(int i=0;i =max) max=b[i]; } fo…
在讨论《帮我看看我的代码哪里有问题吧,感谢感谢感谢!!!》回复:
@[sgweo8ys](/user/203501) 哦哦哦对我似乎理解错题意了,谢谢谢谢!!
在讨论《这样写为什么不对呀,求助!!!》回复:
@[ud2_](/user/206953) 谢谢谢谢