02 2023 档案

摘要:题目两道: https://www.luogu.com.cn/problem/P1525 https://www.luogu.com.cn/problem/P6121 代码: //关押犯人 #include <stdio.h> #include <stdlib.h> #include <vector 阅读全文
posted @ 2023-02-23 22:35 MITE's_BKY 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h> #include<mpi.h> int main(int argc, char **argv) { int myid, numprocs; int source = 0; int *sbuf; int rbuf[2]; int i; MPI_Init(&argc, 阅读全文
posted @ 2023-02-13 11:05 MITE's_BKY 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P1443 #include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; int s[400][400]; typedef struct q 阅读全文
posted @ 2023-02-08 10:02 MITE's_BKY 阅读(24) 评论(0) 推荐(0) 编辑
摘要:转载: https://blog.csdn.net/carry_hkr/article/details/118389666#:~:text=%E6%A6%82%E5%BF%B5%26%E7%94%A8%E9%80%94%20%E5%89%8D%E7%BC%80%E5%92%8C%E6%98%AF%E 阅读全文
posted @ 2023-02-06 22:36 MITE's_BKY 阅读(813) 评论(0) 推荐(0) 编辑
摘要:题目: https://www.luogu.com.cn/problem/P1162 #include <stdio.h> #include <stdlib.h> using namespace std; int board[30][30]; int vis[30][30]; typedef str 阅读全文
posted @ 2023-02-05 22:45 MITE's_BKY 阅读(93) 评论(0) 推荐(0) 编辑
摘要:题目: https://www.luogu.com.cn/problem/P1135 #include <stdio.h> #include <math.h> int q[201]; //用队列维护,经常的事 int h, t; //tail ,hair int s[201]; //到i的距离 in 阅读全文
posted @ 2023-02-05 21:59 MITE's_BKY 阅读(10) 评论(0) 推荐(0) 编辑
摘要:深搜将搜索过程抽象成一层一层的逻辑 一般可以用两个二位数组,一个用来存数据,一个用来存是否做过该路径 阅读全文
posted @ 2023-02-03 21:01 MITE's_BKY 阅读(12) 评论(0) 推荐(0) 编辑
摘要:题目描述 https://www.luogu.com.cn/problem/P2249 在==整数==的范围时 首先有这么一件事情:mid =(left + right)/ 2 if(left == right-1) -> mid == leftl , 接着mid又赋值给left造成死循环 ,so 阅读全文
posted @ 2023-02-01 18:23 MITE's_BKY 阅读(14) 评论(0) 推荐(0) 编辑
摘要:但我们取x为1的时候,actan 1 = pi/4 ,pi = 4 1/n * 累加 (1+1/x*x); 阅读全文
posted @ 2023-02-01 15:38 MITE's_BKY 阅读(36) 评论(0) 推荐(0) 编辑
摘要:##进程组是通信域的重要组成部分,一个进程组是一组不同进程的有序集合(为了完成一个任务)。同一进程可以属于不同的进程组,编号也不一定相同。 阅读全文
posted @ 2023-02-01 10:58 MITE's_BKY 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示