这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
``` #include #include using namespace std; int a,b,n,m; long long count; int s[23][23]; void solve(int x,int y){ if(x==a&&y==b){ count++; return; } if(x==a+1||y…
``` #include using namespace std; //思路是先将s全排列到k,再计数count++ 到m,若到了m则输出此时的s int s[10002]={0},k[10002]={0},used[10002]={0};//s为全排列的数组,k为输入数组, long long count = 0,n…
``` #include using namespace std; typedef struct qnode{ int n; qnode *next; }qnode; typedef struct queue{ qnode *first; }queue; void inqueue(queue &q,int i,int…
在讨论《这里只有第一个点对了,有无大佬康康》回复:
@[Tom336853](/user/677969) 确实有问题
在讨论《这道题的题解一时间复杂度不会超了吗?q假如取100000 ,s取10的9次方》回复:
@[impuk](/user/279700) 不是很懂什么意思
``` #include #include using namespace std; const int MAX = 100005; struct node { //s用来记录desk[i]的元素个数,表示第i个柜子已存s次物品 //num表示第i个柜子的第num个格子存入一个物品 //w表示该格子存入的物品 vect…
在讨论《这里只有第一个点对了,有无大佬康康》回复:
@[_cyle_King](/user/582035) 是我题目理解错了吗?可以举一个反例吗
``` #include using namespace std; int main(){ int n, q; cin>> n>> q; int si[100001] = {0}; int sj[100001] = {0}; int a=0; for(int i=0; i > a; if(a==1){ int b; c…
```cpp #include using namespace std; void quicksort(int s[],int left,int right); void swap(int *s,int *r){ int temp=*s; *s=*r; *r=temp; } int main(){ int max,mi…
```cpp #include using namespace std; void quicksort(int s[],int left,int right); void swap(int *s,int *r){ int temp=*s; *s=*r; *r=temp; } int main(){ int max,mi…
```cpp #include using namespace std; int nishi(int a,int u,int y); int shunshi(int a,int u,int y); int main(){ int a,b,x=1; cin>>a>>b; struct person{ int c; str…
在讨论《求求大佬了!不知道哪里错了》回复:
@[RockyYue_](/user/308106) 太感谢了!!!
```cpp #include using namespace std; int main(){ int i=0,j=0; char s[100]={0},a[100]={0}; scanf("%s",&s); for(int i=0;i<12;i++){ if(s[i]!='-') a[j++]=s[i]; } co…
在讨论《暴力求解为什么行不通??????》回复:
@[H2OCLNA](/user/575453) 谢谢
```cpp #include using namespace std; int main(){ int a,b,c; cin>>a,b,c; if(a<=b&&b<=c) cout<<a<<' '<<b<<' '<<c; else if(a<=c&&c<=b) cout<<a<<' '<<c<<' '<<b; els…
在讨论《20分求助,(在线求助)求求了大佬们》回复:
@[Loser_King](/user/159686) 谢谢
```cpp #include using namespace std; char s1[10001],s2[10001]; int a[10001],b[10001],c[4000000]; int main(){ scanf("%s",s1); scanf("%s",s2); int la=strlen(s1);…
```cpp #include using namespace std; int main(){ int a,b; char n; cin>>a>>b; bool s[a][b]={0}; for(int i=0;i<a;i++){ for(int m=0;m<b;m++){ scanf("%c",&n); if(n=…
```cpp #include using namespace std; int main(){ int a,b,c; cin>>a>>b; c=ceil(1.0*a/b)+10; cout =10) cout =1320){ if((1920-c)%60>=10) cout =10) cout<<(1920-c)/6…