02 2021 档案

摘要:有一个n*m的棋盘(1<n,m<=400),在某个点上有一个马,要求你计算出马到达棋盘上任意一个点最少要走几步 输入格式 一行四个数据,棋盘的大小和马的坐标 输出格式 一个n*m的矩阵,代表马到达某个点最少要走几步(左对齐,宽5格,不能到达则输出-1) 输入输出样例 输入 #1复制 3 3 1 1 阅读全文
posted @ 2021-02-23 20:19 py佐料 阅读(117) 评论(0) 推荐(0)
摘要:K(1≤K≤100)只奶牛分散在N(1≤N≤1000)个牧场.现在她们要集中起来进餐.牧场之间有M(1≤M≤10000)条有向路连接,而且不存在起点和终点相同的有向路.她们进餐的地点必须是所有奶牛都可到达的地方.那么,有多少这样的牧场呢? 第1行输入K,N,M.接下来K行,每行一个整数表示一只奶牛所 阅读全文
posted @ 2021-02-22 06:13 py佐料 阅读(119) 评论(0) 推荐(0)
摘要:MinGW,即 Minimalist GNU For Windows。它是一些头文件和端口库的集合,该集合允许人们在没有第三方动态链接库的情况下使用 GCC(GNU Compiler C)产生 Windows32 程序。 实际上 MinGW 并不是一个 C/C++ 编译器,而是一套 GNU 工具集合 阅读全文
posted @ 2021-02-21 11:54 py佐料 阅读(1662) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/Anderson-An/p/9939264.html 阅读全文
posted @ 2021-02-20 21:17 py佐料 阅读(30) 评论(0) 推荐(0)
摘要:npm是什么?干什么的? 写在前面:本人在学习各种技术的过程中发现都会遇到一个名叫“npm”的东东,本着知其然也要知其所以然的精神,我找到了一篇相关文章。它很好的告诉了我什么是npm,现在把它拿出来,意在分享给其他像我一样的小白们。 社区 程序员自古以来就有社区文化: 社区的意思是:拥有共同职业或兴 阅读全文
posted @ 2021-02-20 21:09 py佐料 阅读(72) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/piglite/article/details/85837325?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&dist 阅读全文
posted @ 2021-02-20 20:28 py佐料 阅读(463) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cstdio> using namespace std; int nxt[100], ver[100], head[100], dist[100]; //如果用next会名字空间冲突 int tot = 0; void add(int x, 阅读全文
posted @ 2021-02-17 07:47 py佐料 阅读(343) 评论(0) 推荐(0)
摘要:在经过多次尝试后给出以下json文件的配置(之前一直处理不对) ps:路径改成自己的mingw文件夹下的bin路径 有时候安装的mingw出问题,会导致bin文件夹下没有gdb.exe文件(重装mingw即可) launch.json: ``` { "version": "0.2.0", "conf 阅读全文
posted @ 2021-02-17 07:18 py佐料 阅读(114) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cstdio> #include<iomanip> using namespace std; int b[9]; int ans; int n; int panduan(int a[], int n)//1不在,0在 { bool x = 阅读全文
posted @ 2021-02-06 05:44 py佐料 阅读(107) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cstdio> using namespace std; int b[100]; int c[100]; int a[3] = { 1,2,3 }; int ans; int n; void fun(int depth, int sum) 阅读全文
posted @ 2021-02-05 21:05 py佐料 阅读(64) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> using namespace std; int n=0,k=0,ans=0; int a[25]; bool panduan(int x) { for(int i=2;i<floor(sqrt(x));i++) { if(x%i==0) retur 阅读全文
posted @ 2021-02-04 21:20 py佐料 阅读(56) 评论(0) 推荐(0)
摘要:#include <cstdio> #include <queue> #include <utility>//pair using namespace std; typedef pair<int, int> pii; const int N = 405; int d[N][N]; int main( 阅读全文
posted @ 2021-02-03 07:42 py佐料 阅读(67) 评论(0) 推荐(0)