全部评论 1

  • #include<bits/stdc++.h>
    #define int long long
    using namespace std;
    int n,m,b[101][101],x2,y2,x1,y1;
    char a[101][101];
    void pl(int x,int y){
    pl(x+1)
    }
    signed main(){
    cin>>n>>m;
    for(int i=1;i<=n;i++){
    for(int j=1;j<=m;j++){
    cin>>a[i];
    if(a[i]'S'){
    b[i][j]=1;
    x2=i;
    y2=j;
    }else if(a[i]
    '.'){
    b[i][j]=1;
    }else if(b[i][j]==)
    else{
    b[i][j]=1;
    x1=i;
    y1=j;
    }
    }
    }
    pl(1,1);
    }

    2025-05-14 来自 浙江

    0
首页