用C++编写的电梯程序出现异常
发布时间
阅读量:
阅读量
个人简介内容呈现
🎉各位好,我是三月新晋榜单中位列第三的 ༺Blog༒Hacker༻
💬如需支持:请给予点赞👍、收藏⭐️以及留言📝
🌺座右铭:༺始终追求卓越的༒programmer༻
电梯异常行为分析
**【🔥问题描述
5 1 5
3 3 1 2 5
3
💯CODE
#include<bits/stdc++.h>
using namespace std;
typedef struct{
int x;
int y;
}z;
queue<z> q;
int n,a,b;
int s[1000];
int t[1000]={0};
int main()
{
z e1,e2;
int i;
cin>>n>>a>>b;
for(i=1;i<=n;++i)
{
cin>>s[i];
}
e1.x=a;
e1.y=0;
q.push(e1);
全部评论 (0)
还没有任何评论哟~
