2877:我这个方法更简单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,x,y; scanf("%d%d%d",&n,&x,&y); int i,j;…… 题解列表 2024年12月26日 13 点赞 1 评论 582 浏览 评分:10.0
暴力解出同行列对角线的格子 摘要:解题思路:在编写从左上到右下输出同一对角线格子位置 ,从左下到右上输出同一对角线格子位置时候,使用了while循环分别找出了起始坐标,终点坐标。然后用for循环遍历即可注意事项:需要定义多个变量参考代…… 题解列表 2026年03月12日 0 点赞 0 评论 48 浏览 评分:10.0
同行列对角线的格子(C语言代码) 摘要:```c #include /*------------------------------*/ void S_line(int n, int x, int y)//从左到右输出同一行格子位置 …… 题解列表 2022年11月01日 0 点赞 0 评论 965 浏览 评分:9.9
2877: 同行列对角线的格子(有点麻烦,但非常好使) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std ; int a[100][100] ; int b[100][100] ;…… 题解列表 2023年07月18日 0 点赞 0 评论 769 浏览 评分:9.9
编写题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b; int i=0,j=0; scanf("%d %d %d",&n,&a,&b); /…… 题解列表 2022年10月22日 1 点赞 0 评论 616 浏览 评分:9.7
优质题解 同行列对角线的格子(不明白怎么把这题放到多维数组题集来的,可以通过给的格子坐标,得出左上对角线起点和左下对角线起点) 摘要:解题思路:从左到右输出和从上到小输出就不用多说了,说一下求对角线起点:先设两变量分别赋值给的格子的行,列,就设a,b吧求左上起点的话:a和b都自减,底线为大于1,也就是当a或b等于1时,此时(a,b)…… 题解列表 2023年10月26日 0 点赞 0 评论 911 浏览 评分:8.0
同行列对角线的格子(C语言) 摘要:#####注意事项: **1、利用while循环找规律时要注意括号里面应不应该取等号 2、每一行输出完之后要单独输出一个换行符** ###### 代码块如下: ```c #include …… 题解列表 2024年08月05日 0 点赞 0 评论 485 浏览 评分:8.0
废物新人的笨方法 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include<math.h> int main(){ int n,i,j; scanf("%d%d%d",&n,&i,&j); fo…… 题解列表 2022年12月01日 0 点赞 0 评论 583 浏览 评分:6.0
同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,g; scanf("%d %d %d",&n,&m,&g); for(int i=0…… 题解列表 2022年11月13日 0 点赞 0 评论 381 浏览 评分:0.0
2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d", &n);//n*n int i, j; scanf("%d %d", …… 题解列表 2023年01月28日 0 点赞 0 评论 382 浏览 评分:0.0