跳到正文

休闲·娱乐

让我们定义一些下划线

F1ash约 2 分钟
原文
文章信息与版本

文章信息

发布
2025年10月4日
收录
2025年12月12日
更新
2026年9月8日
篇幅
约 2 分钟
获赞
1

版本

  1. v2当前
  2. v1

int _; 是合法定义

于是AZX使用“_”解决了过河卒:

C++
#include<bits/stdc++.h>
using namespace std;
const int _[8][2]={{1,2},{1,-2},{2,1},{2,-1},{-1,2},{-1,-2},{-2,1},{-2,-1}};
bool __[30][30];
long long ___[30][30],____[10];
int main(){
    cin>>____[5]>>____[6]>>____[0]>>____[1];
    __[____[0]][____[1]]=true;
    for(int _____=0;_____<8;_____++){
        ____[3]=____[0]+_[_____][0],____[4]=____[1]+_[_____][1];
        if(____[3]>=0&&____[3]<=____[5]&&____[4]>=0&&____[4]<=____[6]) __[____[3]][____[4]]=true;
    }
    ___[0][0]=1;
    for(int _____=0;_____<=____[5];_____++){
        for(int ______=0;______<=____[6];______++){
            if(__[_____][______]==false){
                if(_____) ___[_____][______]+=___[_____-1][______];
                if(______) ___[_____][______]+=___[_____][______-1];
            }
        }
    }
    cout<<___[____[5]][____[6]]<<endl;
    return 0;
}
原文