上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
摘要: A - 生活大爆炸版石头剪刀布 B - 联合权值 C - 飞扬的小鸟 D - 无线网络发射器选址 E - 寻找道路 F - 廊桥分配 G - 格雷码 A - 生活大爆炸版石头剪刀布 这套题就是注意处理一下输赢关系就好了 #include <bits/stdc++.h> using namespace 阅读全文
posted @ 2023-03-07 22:53 PHarr 阅读(14) 评论(0) 推荐(0) 编辑
摘要: A - CAPS LOCK #include <bits/stdc++.h> using namespace std; int32_t main() { string s; cin >> s; for( auto i : s ) cout << char(i - 'a' + 'A'); return 阅读全文
posted @ 2023-03-05 20:49 PHarr 阅读(37) 评论(0) 推荐(0) 编辑
摘要: A. Printing Papers 二分一下就好了 #include<bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') & 阅读全文
posted @ 2023-03-05 15:38 PHarr 阅读(76) 评论(0) 推荐(0) 编辑
摘要: A. 解开束缚缠丝Ⅱ 回文串中至多出现一种字母是奇数个。 #include<bits/stdc++.h> using namespace std; void solve(){ int n; cin >> n; map<char,int> st; int res = 0 , f = 0; for( c 阅读全文
posted @ 2023-02-17 23:31 PHarr 阅读(103) 评论(0) 推荐(0) 编辑
摘要: A. 班委竞选 签到题 #include <bits/stdc++.h> using namespace std; int32_t main() { int n , m ; cin >> n >> m; vector<int> a( m+1 , 0 ) , b( m+1 , 0 ); for( in 阅读全文
posted @ 2023-02-15 21:15 PHarr 阅读(27) 评论(0) 推荐(0) 编辑
摘要: A - flip #include <bits/stdc++.h> using namespace std; int32_t main() { ios::sync_with_stdio(false) , cin.tie(nullptr) , cout.tie(nullptr); string s; 阅读全文
posted @ 2023-02-14 23:23 PHarr 阅读(28) 评论(0) 推荐(0) 编辑
摘要: P8780 [蓝桥杯 2022 省 B] 刷题统计 P8800 [蓝桥杯 2022 国 B] 卡牌 P8778 [蓝桥杯 2022 省 A] 数的拆分 P8808 [蓝桥杯 2022 国 C] 斐波那契数组 P8786 [蓝桥杯 2022 省 B] 李白打酒加强版 P8781 [蓝桥杯 2022 省 阅读全文
posted @ 2023-02-14 00:04 PHarr 阅读(43) 评论(0) 推荐(1) 编辑
摘要: A. 减肥计划 因为当$k\ge n$时,最大值一定是答案。并且队头的值是不会减少的。所以从对头出队又从队尾入队的一定不是答案。所以最多进行$n$次,用双端队列模拟一下即可。 #include <bits/stdc++.h> using namespace std; int32_t main() { 阅读全文
posted @ 2023-02-11 17:10 PHarr 阅读(180) 评论(0) 推荐(0) 编辑
摘要: A. Abducting Nathan! 每得2k分会轮回,模2k后,小于k先手,反之后手 #include<bits/stdc++.h> using namespace std; typedef long long ll; int read(){ int x = 0 , ch = getchar( 阅读全文
posted @ 2023-02-07 23:19 PHarr 阅读(78) 评论(0) 推荐(0) 编辑
摘要: P8752 [蓝桥杯 2021 省 B2] 特殊年份 P8753 [蓝桥杯 2021 省 AB2] 小平方 P8742 [蓝桥杯 2021 省 AB] 砝码称重 P8754 [蓝桥杯 2021 省 AB2] 完全平方数 P8748 [蓝桥杯 2021 省 B] 时间显示 P8749 [蓝桥杯 202 阅读全文
posted @ 2023-02-06 18:25 PHarr 阅读(62) 评论(0) 推荐(1) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页