摘要:
P2440 木材加工 真不是我想水题目,只是单纯我真的很水 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N = 100010; vector<int>l(N); int n, k; bool check(int x) { 阅读全文
posted @ 2025-05-19 09:23
Chuan81
阅读(50)
评论(0)
推荐(0)
摘要:
P1100 高低位交换 单片机玩多了就会秒了owo 点击查看代码 #include<bits/stdc++.h> using namespace std; using ll = long long; using uint = unsigned int; int main() { uint a; ci 阅读全文
posted @ 2025-05-19 03:46
Chuan81
阅读(11)
评论(0)
推荐(0)
摘要:
P1469 找筷子 亏我是电子信息大类的,异或想半天没想到 点击查看代码 #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int n 阅读全文
posted @ 2025-05-19 03:41
Chuan81
阅读(8)
评论(0)
推荐(0)
摘要:
P1143 进制转换 水一下 点击查看代码 #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string s; cin >> s; int m; cin >> m; reverse(s.begin( 阅读全文
posted @ 2025-05-19 02:47
Chuan81
阅读(8)
评论(0)
推荐(0)
摘要:
P1331 海战 学太多东西反而容易想得太多做不出来 检测是否合法只需先搜索出以当前位置向右向下连续'#'的长度和深度, 在以这两个参数为长宽的矩阵中搜索是否存在'.', 存在就不合法,不存在就看一下这个矩阵周边半径一格位置是否有'#'(即其他船) 有其他船就不合法,否则就将这艘合法船所占空间全部标 阅读全文
posted @ 2025-05-19 02:31
Chuan81
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号