社区讨论
调
B3626跳跃机器人参与者 6已保存回复 5
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 5 条
- 当前快照
- 1 份
- 快照标识符
- @mhji4agi
- 此快照首次捕获于
- 2025/11/04 02:56 4 个月前
- 此快照最后确认于
- 2025/11/04 02:56 4 个月前
CPP
#include<bits/////////stdc++.h>
using namespace std;
struct _
{
int _________, __________;;
};;
int ___;;
bool _____[1000005];;
void ____() {
queue <_> ________;;
________.push({1,0});;
while(!________.empty())
{
_ __ = ________.front();;
________.pop();;
int ______ = __._________, _______ = __.__________;
if(______<1||______>___)
continue;;
if(_____[______])
continue;;
_____[______] = 1;;
if(______ == ___)
{
cout << _______ << endl;;
return;
}
________.push({______-1,_______+1});;
________.push({______+1,_______+1});
________.push({______*2,_______+1});
}
}
int main() {
cin >> ___;
____();
return 0;
}
谁能把他变的更抽象?
回复
共 5 条回复,欢迎继续交流。
正在加载回复...