题解 2877: 同行列对角线的格子

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

对角线的处理找下规律,不难

摘要:解题思路:根据行号列号能找到对角线输出的起始点注意事项:对角线的输出先确定范围参考代码:#include<iostream> #include<stdio.h> using namespace s……

2877: 同行列对角线的格子

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1000;ll a……

2877: 同行列对角线的格子

摘要:解题思路:注意事项:参考代码:n,a,b = map(int,input().strip().split())for i in range(n):    print("(%d,%d)" % (a,i+……