suxxsfe

一言(ヒトコト)

摘要: 题目传送门 基础题,此题有$3$种解法 我不会欧拉筛 \(O(52n):\) 枚举$2\sim n\div2$,判断是否x%i==0即可。 \(Code:\) #include<iostream> #include<cstring> #include<cmath> using namespace s 阅读全文
posted @ 2021-08-03 17:25 卫道士qwq 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 深搜基础题,用string存储即可。 \(50pts:\)(下标为$1$用惯了) #include<iostream> #include<algorithm> #include<cmath> using namespace std; string a[21]; int w,h,vis[21][21] 阅读全文
posted @ 2021-08-03 15:40 卫道士qwq 阅读(863) 评论(0) 推荐(0) 编辑