摘要:
原题链接 题解 暴力。 知识点 : \(exp(x)\) 返回 \(e^x\) 如果这里先把所有的素数求出来的话,也要 \(n·\sqrt{n}\) 也就是 \(1e^{15}\) ,所以直接遍历就好了 code #include<bits/stdc++.h> #define ll long lon 阅读全文
posted @ 2024-04-23 22:20
纯粹的
阅读(24)
评论(0)
推荐(0)
摘要:
原题链接 题解 被自己蠢哭了 没思路的时候先暴力想想看,暴力思路怎样?按输入顺序遍历仓库,然后再来一个循环,找到第一个大于自己的仓库,怎么找?循环找呗 时间复杂度 \(1e^7\) 貌似可以 code #include<bits/stdc++.h> using namespace std; stru 阅读全文
posted @ 2024-04-23 21:56
纯粹的
阅读(15)
评论(0)
推荐(0)
摘要:
原题链接 \(code\) #include<bits/stdc++.h> using namespace std; int dis[105][105]; int xx[4]={1,0,-1,0},yy[4]={0,1,0,-1}; int a[105][105]; int vis[105][105 阅读全文
posted @ 2024-04-23 14:31
纯粹的
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号