上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页
摘要: 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 阅读(47) 评论(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 阅读(122) 评论(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 阅读(124) 评论(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 阅读(45) 评论(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 阅读(37) 评论(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 阅读(60) 评论(0) 推荐(1)
摘要: A. 减肥计划 因为当$k\ge n$时,最大值一定是答案。并且队头的值是不会减少的。所以从对头出队又从队尾入队的一定不是答案。所以最多进行$n$次,用双端队列模拟一下即可。 #include <bits/stdc++.h> using namespace std; int32_t main() { 阅读全文
posted @ 2023-02-11 17:10 PHarr 阅读(287) 评论(0) 推荐(1)
摘要: 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 阅读(106) 评论(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 阅读(72) 评论(0) 推荐(1)
摘要: AcWing 4800. 下一个 签到 #include <bits/stdc++.h> using namespace std; int32_t main() { int x; cin >> x; auto f = []( int x){ set<int> a; for( int y ; x > 阅读全文
posted @ 2023-02-06 16:39 PHarr 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页