这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在文章《题解:P1006 [NOIP 2008 提高组] 传纸条》发表评论:
。。。
在讨论《求助!只对4个测试点》回复:
ok
```cpp #include #include using namespace std; //种数,钱,各个钱的具体种类,最简的凑齐n个钱的方法数,无穷大 int N, W, w[10001], jy[10001], INF=1e9; int dp(int n){ if(n >N>>W; for(int i=1;i…
在讨论《向广大洛谷群众求助》回复:
好了没事了,解决了。顺便警示后人:最好循环用1——n,不要用0——n-1。不然可能走着走着就出界了。 代码 ```cpp #include //广度优先搜索 #include using namespace std; struct cow//牛牛结构体 { int num;//步数 int x;//坐标 int y;…
在讨论《向广大洛谷群众求助》回复:
改了一下哈 ```cpp #include //广度优先搜索 #include using namespace std; struct cow//牛牛结构体 { int num;//步数 int x;//坐标 int y; }; //变量和数组 int n, m, x, y; int x2, y2; int ax[4]…
没输出 ```cpp #include //广度优先搜索 #include using namespace std; struct cow//牛牛结构体 { int num;//步数 int x;//坐标 int y; }; //变量和数组 int n, m, x, y; int x2, y2; int ax[4] =…
在讨论《写了一半,不会写了。求改!》回复:
改了一下,能运行了 ```cpp #include #include using namespace std; string Str,str1,str2,str3; char cn; int n; string jm(string str){ for(int i=0;str[i]!='\0';i++){ if(str[…
```cpp #include #include using namespace std; string Str,str1,str2,str3; char cn; int n; string jm(string str){ for(int i=0;str[i]!='\0';i++){ if(str[i]=='['){…
在讨论《不负众望!!!似了。》回复:
@_Ad_Astra_谢谢
在讨论《不负众望!!!似了。》回复:
亿点繁琐,不要在意
```cpp #include using namespace std; int n; struct pp{ short name,yw,yy,sx; int zf(){ return this->yw+this->yy+this->sx; } void print(){ cout name yw yy sx name…
在讨论《Orn求助》回复:
Orz
```cpp #include using namespace std; int Orn[100],n,m; float pf(){ float a[20],max=0,min=10,ans=0; for(int i=0;i >a[i]; if(a[i]>max){ max=a[i]; } if(a[i] >n>>m;…
```cpp #include using namespace std; double a1[1000],a2[1000]; double s[1000]; float my_s(int a1,int a2,int b1,int b2){ return sqrt((a2-a1)*(a2-a1)+(b2-b1)*(b2-…
在讨论《似了》回复:
ok 谢谢
在讨论《似了》回复:
hh
```cpp #include #include using namespace std; int n,x,num=0,t=0,ans=0,cnt=1; string a,b; int main(){ cin>>b; n=b.size(); cout >a){ b+=a; } for(int i=0;i<n;i++){…
在讨论《TLE一半,求调》回复:
这个是1320
```cpp #include using namespace std; int n,x,num=0,i1=0,t=0,t2=0,ans=0,cnt=0; int ysm[10000]; int map[900000]; int sort(int a){//土sort for(int i=0;i >t2; while(…
在讨论《到底错在哪里呢?》回复:
改了一下,还是错的 ```cpp #include using namespace std; int a1,a2,b1,b2,c1,c2; bool map[100][100][100]; int w,x,h; int q; int main(){ cin>>w>>x>>h; cin>>q; for(int i=0;i…
```cpp #include using namespace std; int a1,a2,b1,b2,c1,c2; bool map[100][100][100]; int w,x,h; int q; int main(){ cin>>w>>x>>h; cin>>q; for(int i=0;i >a1>>b1>>…
在讨论《帮我改一下》回复:
自己改好了,就当发个题解吧 ```cpp #include #include #include using namespace std; int dx1[13]={ 2, 0,-2, 0, 1, 1, 1, 0, 0, 0,-1,-1,-1},//火把 dy1[13]={ 0, 2, 0,-2, 0, 1,-1, 1,…
在讨论《帮我改一下》回复:
样例二错了,输入:8 22 0 1 1 1 2 1 3 1 4 1 5 1 6 3 1 3 2 3 3 3 4 3 5 3 6 5 1 5 2 5 3 5 4 5 5 5 6 7 1 7 3 7 5 7 7 输出:2
```cpp #include #include #include using namespace std; int dx1[13]={2,0,-2, 0,1,1, 1,0,0, 0,-1,-1,-1},//火把 dy1[13]={0,2, 0,-2,0,1,-1,1,0,-1, 0, 1,-1}; int dx2[2…
在文章《题解:P11239 「KTSC 2024 R2」跳跃游戏》发表评论:
? ?
在讨论《3 月 4 日更新公告》回复:
!
在讨论《3 月 4 日更新公告》回复:
?
```cpp #include #include using namespace std; struct wss//维生素子结构体 暂时用 { int ans;//料饲个数 int num[30];//饲料编号 int wtm[30]; //素子之和 }; int v,wtm[10000]; int g,sl[1000…
在讨论《警示后人》回复:
深有其感, 症状相同 ```cpp /*void dfs(int xxx,int yyy) { if(flag[xxx][yyy]||map[xxx][yyy]=='*'||xxx x||yyy>y) { return; } flag[xxx][yyy]=1; for(int i=0;i #include using…