
Lv.1
距离半傻还有-49.99,继续加油 || 鱼氏二跳创始人 & 醉蒻传说 & 醉傻室长
签名:我希望有人能继承我的精神世界
在 【官方】如何上首页?只需在本帖下面评论! 中回复
https://shequ.codemao.cn/work/182234278
#以下为python代码
print("求求你们了,快来玩玩吧,顺便点个赞帮我投个搞哦~~~")
//以下为c++代码
#include<iostream>
using namespace std;
int main(){
cout<<"求求你们了,快来玩玩吧,顺便点个赞帮我投个搞哦~~~";
}
2023-04-12T20:21:57 点赞:0
在 五一帮大家做点东西,『工作室封面,头像,作品封面,海报......』来康康~ 中回复
类型:工作室封面
主颜色:灰色或浅色系
其他:室名“惊鸿工作室”,背景随意,霸气些
备注:“惊鸿”俩字大点,最好是楷书或行书配上英文字母,阔以康康目前的封面(虽然不太好)
蟹蟹
2023-05-03T13:29:59 点赞:0
在 【小游戏】把你最近ctrl+c的东西发出来 中回复
一般人可看不懂()
#include<bits/stdc++.h>
using namespace std;
struct ry{
int v;
double c;
};
ry rongye[10000005];
int main(){
int n,top=0,ryt;
char pz;
double nd;
cin>>rongye[top].v>>rongye[top].c;
cin>>n;
for(int i=1;i<=n;i++){
cin>>pz;
if(pz=='P'){
cin>>ryt>>nd;
rongye[top+1].v=rongye[top].v+ryt;
rongye[top+1].c=(ryt*nd+rongye[top].v*rongye[top].c)/rongye[top+1].v;
top++;
}
else if(pz=='Z'&&top>0){
top--;
}
printf("%d %.5lf\n",rongye[top].v,rongye[top].c);
}
return 0;
}
2023-07-18T15:47:54 点赞:0
在 这神马玩儿啊这 中回复
在此献上我们的习题代码,谁能看的懂我赏他20赞分。我编程猫OJ榜喵谢谢,你们加油awa
#include<iostream>
#include<queue>
#include<cstring>
using namespace std;
queue<int> q;
int a[1005][1005];
int dx[8]={-1,-1,0,1,1,1,0,-1};
int dy[8]={0,1,1,1,0,-1,-1,-1};
int main(){
memset(a,-1,sizeof(a));
int n,m,x,y;
cin>>n>>m;
for(int i=1;i<=m;i++){
cin>>x>>y;
a[x][y]=-2;
}
a[1][1]=0;
q.push(1);
q.push(1);
while(!q.empty()){
x=q.front();
q.pop();
y=q.front();
q.pop();
if(x==n&&y==n){
cout<<a[n][n];
return 0;
}
for(int i=0;i<8;i++){
int tx=x+dx[i];
int ty=y+dy[i];
if(tx>=1&&tx<=n&&ty>=1&&ty<=n&&a[tx][ty]==-1){
a[tx][ty]=a[x][y]+1;
q.push(tx);
q.push(ty);
}
}
}
return 0;
}
,
2023-07-26T15:55:12 点赞:0