​​题目传送门​​//简单dfs加步数记录#include<cstdio>#include<cstring>#include<iostream>using namespace std;char Map[12][12];int vis[12][12];int ro,co,lo;int cnt;void dfs(int a,int b,int step);int m
原创 2022-04-20 10:00:41
77阅读
Robot MotionTime Limit:1000MSMemory Limit:10000KTotal S
转载 2015-10-18 12:57:00
67阅读
2评论
Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are
原创 2023-04-13 22:48:12
55阅读
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3266    Accepted Submission(s): 1519 Problem Description A ro
原创 2023-02-24 10:14:30
36阅读
题目链接:POJ 1573 Robot Motion 一个小模拟,非常easy,依照提示一步步走就是了 #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <cstring> u
转载 2017-04-25 16:23:00
59阅读
Robot MotionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7974Accepted Submission(s): 3685Proble...
转载 2015-07-01 22:41:00
134阅读
2评论
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3266 Accepted Submission(s): 1519Problem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a gri
转载 2012-04-25 16:21:00
103阅读
Robot MotionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (J
原创 2022-03-17 16:36:49
78阅读
Robot Motion Memory Limit: 10000K Total Submissions: 10221   Accepted: 4978 Description A robot has been programmed to follow the instructions in
原创 2023-04-21 01:24:18
25阅读
char map[12][12]; int visit[12][12]; int main() {     char p,local;     int a,b,c,M,N,sum;     while(1)    
原创 2022-08-23 08:18:35
35阅读
题意:给你一个棋盘,上面的字母代表机器人要走的方向。假设机器人能走出这个棋盘,则输出机器人所走的步数,否则输出该机器人在走向无限循环前所走的步数。及无限循环所要走的格子数 思路:直接模拟,没有思路(大神能够多考虑些思路) AC代码: #include<stdio.h> #include<string.h> char str[12][12]; int flag[12][
转载 2017-08-06 17:23:00
90阅读
2评论
#include <iostream>#include <queue>#include <vector>#include <algorithm>#include <stack>using
原创 2023-02-22 08:03:22
76阅读
Description A robot has been programmed to follow the instructions in its path. Instructions nstructions are
原创 2022-08-10 10:28:58
37阅读
http://poj.org/problem?id=1573 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 char g[maxn][maxn]; 7 int r,l,st; 8 int vis[maxn][maxn]; 9 int main()10 {11 while(scanf("%d%d%d",&r,&l,&st)!=EOF)12 {13 if(r==0&&l==0&&st==0) break;14 for
转载 2014-01-18 08:34:00
44阅读
2评论
Problem Description A robot has bee
原创 2022-08-12 09:54:54
33阅读
主要是思维,dis[s][t]数组的作用
原创 2024-08-14 17:19:32
8阅读
                                 &n
原创 2013-07-18 11:22:00
337阅读
题目地址:http://poj.org/problem?id=1573 1 /* 2 题意:给定地图和起始位置,robot(上下左右)一步一步去走,问走出地图的步数 3 如果是死循环,输出走进死循环之前的步数和死循环的步数 4 模拟题:used记录走过的点,因...
转载 2015-03-27 17:52:00
76阅读
2评论
Robot MotionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13107 Acc
原创 2022-11-20 14:20:03
135阅读
很水的模拟题,把-号写成了=号,找了一个小时我也是醉了,但发现自己比原来还是进步了#include#include#includeusing namespace std;const int maxn = 100;char map[maxn][maxn];int vis[maxn][maxn];int main(){ int m,n,x; while(scanf(
原创 2022-08-05 16:40:19
21阅读
  • 1
  • 2
  • 3
  • 4
  • 5