题解 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 评论 177 浏览 评分:9.9
2877: 同行列对角线的格子 Python实现,带注释 摘要:解题思路:之前一直想推出 对角线的坐标,后面发现方向错了,看了其他大佬的发现需要用规律来做主对角线的规律是,两个坐标作差相等;副对角线的规律是,两个坐标的和相等;注意事项:0参考代码:N, i, j …… 题解列表 2023年12月05日 0 点赞 2 评论 411 浏览 评分:9.9
2877: 同行列对角线的格子 摘要:参考代码:#include<bits/stdc++.h>using namespace std;long long int a[1300][1300];int main(){ int n; …… 题解列表 2023年07月21日 0 点赞 0 评论 213 浏览 评分: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 评论 191 浏览 评分:10.0
2877:我这个方法更简单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,x,y; scanf("%d%d%d",&n,&x,&y); int i,j;…… 题解列表 2024年12月26日 7 点赞 0 评论 313 浏览 评分:10.0