优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 3 点赞 0 评论 203 浏览 评分:10.0
编写题解 1208: 孤独的骑士 摘要:解题思路:注意事项:参考代码:dic={'a':1,'b':2,'c':3,'d':4,'e':5,'f'…… 题解列表 2022年02月21日 1 点赞 0 评论 285 浏览 评分:10.0
孤独的骑士 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[8][8]={0},j,k; int y,x1; char x; s…… 题解列表 2017年11月23日 1 点赞 0 评论 1535 浏览 评分:9.9
孤独的骑士 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); getchar(); char ch; int a[100],…… 题解列表 2023年12月31日 0 点赞 0 评论 334 浏览 评分:9.9
每天2道程序题的纯小白 摘要:解题思路:注意事项:#include<stdio.h> void Fun(char x, int y, int* num); int ju[11][11] = { 0 }; int main()…… 题解列表 2023年05月31日 0 点赞 4 评论 224 浏览 评分:9.9
1208: 孤独的骑士 摘要:```cpp #include using namespace std; int knight(char a,int b) { if(a>='c'&&a=3&&b>n; f…… 题解列表 2023年01月05日 0 点赞 0 评论 336 浏览 评分:9.9
孤独的骑士 摘要:解题思路:8*8的棋盘,简单易懂,不懂打我注意事项:参考代码:#include<stdio.h>int main() { int m,n,k,a,b,p,sum; char c; scanf("%d"…… 题解列表 2022年02月11日 0 点赞 0 评论 436 浏览 评分:9.9
孤独的骑士-题解(Java代码) 摘要:1.由于骑士的行走方式是确定的,可以先用一个二维数组来保存 ```java static int f[][] = {{2,-1},{2,1},{1,2},{-1,2},{-2,1},{-2,-1}…… 题解列表 2020年03月25日 0 点赞 0 评论 789 浏览 评分:9.9
孤独的骑士 (C语言代码) 摘要:解题思路:分情况讨论注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, x, y, count; char c; scanf("%d", &n)…… 题解列表 2017年12月09日 0 点赞 0 评论 1467 浏览 评分:9.9
孤独的骑士 (C++代码) 摘要:解题思路:每个位置其实都有8种走法,但是如果出界则不计注意事项:getchar(),还有那个数组ch要多留个位置存放'\0'参考代码:#include <iostream>using …… 题解列表 2019年03月12日 1 点赞 2 评论 1212 浏览 评分:9.9