题解 2877: 同行列对角线的格子 摘要: #include using namespace std; const int N=1100; int a[N],b[N],x[N],y[N],n,i,j; …… 题解列表 2023年12月24日 0 点赞 0 评论 99 浏览 评分:9.9
对角线的处理找下规律,不难 摘要:解题思路:根据行号列号能找到对角线输出的起始点注意事项:对角线的输出先确定范围参考代码:#include<iostream> #include<stdio.h> using namespace s…… 题解列表 2023年12月31日 0 点赞 0 评论 92 浏览 评分:9.9
编写题解 2877: 同行列对角线的格子(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2877: 同行列对角线的格子 import java.util.Scanner; public class t_287…… 题解列表 2024年02月03日 0 点赞 0 评论 75 浏览 评分: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 评论 150 浏览 评分:0.0
此题仅供参考,(也可以抄) 摘要:解题思路:无注意事项:无,就是有点nan.参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int…… 题解列表 2024年06月09日 0 点赞 0 评论 65 浏览 评分:9.9
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5; //此行可以删去int main(){ …… 题解列表 2024年06月09日 0 点赞 0 评论 54 浏览 评分:0.0
题解 2877: 同行列对角线的格子 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e3; ll a[N][N]; int m…… 题解列表 2024年06月09日 0 点赞 0 评论 84 浏览 评分: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 评论 94 浏览 评分: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 评论 110 浏览 评分: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 评论 83 浏览 评分:0.0