![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
Cosmic_Tree
什么时候才能像杨大佬一样强啊(´;︵;`)
展开
-
AcWing 756. 蛇形矩阵 ( 螺旋矩阵 )
题目链接:点击进入 题目 思路 模拟螺旋矩阵(蛇形矩阵) 代码 #include<cstdio> #include<algorithm> #include<queue> #include<cstring> #include<iostream> #include<cmath> using namespace std; const int maxn=1e5+10; const int dx[4]={0,1,0,-1}; const int原创 2021-03-06 10:09:08 · 143 阅读 · 0 评论 -
Multiplication Table(模拟)
题目连接:点击查看 思路 全是 ‘ ?’ 输出Yes ; 否则检验不是’ ? ’ 的数是不是正确的(记录此数的位置(纵横坐标),同时枚举这个数的因数,如果因数比位置大,说明此数合法); 如果只有一个不是‘ ?’,只检查这一个数即可; 如果有多个不是‘ ?’的数,可通过第一个不是‘ ?’的数来检验剩下的不是‘ ?的数是否合法 (还是看代码吧,小白的文字描述功力属实不大行) 代码 #include<iostream> #include<cstring> #include<strin原创 2020-09-14 16:22:18 · 352 阅读 · 0 评论