题解 2877: 同行列对角线的格子 #includeusingnamespacestd;constintN=1100;inta[N],b[N],x[N],y[N],n,i,j;intmain(){cin>>n>>i>>j;for(intq=1;q 题解列表 2023年12月24日 0 点赞 0 评论 437 浏览 评分:9.9
对角线的处理找下规律,不难 摘要:解题思路:根据行号列号能找到对角线输出的起始点注意事项:对角线的输出先确定范围参考代码:#include<iostream> #include<stdio.h> using namespace s…… 题解列表 2023年12月31日 0 点赞 0 评论 536 浏览 评分:9.9
编写题解 2877: 同行列对角线的格子(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2877: 同行列对角线的格子 import java.util.Scanner; public class t_287…… 题解列表 2024年02月03日 0 点赞 0 评论 492 浏览 评分:0.0
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,c; scanf("%d%d%d",&n,&i,&j); for(int …… 题解列表 2024年04月20日 0 点赞 0 评论 581 浏览 评分:0.0
此题仅供参考,(也可以抄) 摘要:解题思路:无注意事项:无,就是有点nan.参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int…… 题解列表 2024年06月09日 0 点赞 0 评论 448 浏览 评分:9.9
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5; //此行可以删去int main(){ …… 题解列表 2024年06月09日 0 点赞 0 评论 470 浏览 评分:0.0
题解 2877: 同行列对角线的格子 ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e3;lla[N][N];intmain(){lln,x,y;cin>>n>>x>>y;for(intj=1;j 题解列表 2024年06月09日 0 点赞 0 评论 471 浏览 评分:9.9
2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1000;ll a…… 题解列表 2024年06月09日 0 点赞 0 评论 525 浏览 评分:10.0
感谢题解的启发,想了半天了都 摘要:解题思路:注意事项:参考代码:n,i,j=map(int,input().split())for q in range(1,n+1): print(f"({i},{q})",end=" ")pr…… 题解列表 2024年07月31日 0 点赞 0 评论 838 浏览 评分:0.0
2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:n,a,b = map(int,input().strip().split())for i in range(n): print("(%d,%d)" % (a,i+…… 题解列表 2024年08月04日 0 点赞 0 评论 523 浏览 评分:0.0