摘要: 题目链接 A L1-1小乐乐是否被叫家长 简单,没什么说的,但是要注意尽量不要使用小数去运算,转化成正整数运算不会出现精度问题 #include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int sum= 阅读全文
posted @ 2023-04-05 09:00 north_h 阅读(13) 评论(0) 推荐(0)
摘要: 比赛链接 A 被鸽了的课本 签到题 #include<iostream> #include<cstring> #include<algorithm> using namespace std; int main() { int x, y; double a; cin >> x >> y >> a; a 阅读全文
posted @ 2023-03-28 09:00 north_h 阅读(18) 评论(0) 推荐(0)
摘要: 题目链接 A 完美数 签到题,不要循环,记得开ll。 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100010; int main() { long lo 阅读全文
posted @ 2023-03-26 09:00 north_h 阅读(15) 评论(0) 推荐(0)
摘要: 题目链接 L1-1 谢谢卡尔! 签到题 #include<bits/stdc++.h> using namespace std; int main() { cout << "谢谢卡尔!\\(>_<)/"; return 0; } L1-2 现在是,幻想时间! 签到题 #include<iostrea 阅读全文
posted @ 2023-03-26 09:00 north_h 阅读(22) 评论(0) 推荐(0)
摘要: 题目链接 A Prepend and Append 使用双指针一前一后向中间走,将合法的变为特定字符,直到遇见不合法的情况就停止,最后统计特定字符的数量,用n减去就是最后字符串的长度。 #include<iostream> #include<cstring> #include<algorithm> 阅读全文
posted @ 2023-03-24 09:00 north_h 阅读(9) 评论(0) 推荐(0)
摘要: 点这里 A A Xor B problrm 两个数异或为零,意思就是两个数相等,可以说自己和自己也是一个数对 如果是两层循环会超时,所以开个数组来计算每个数出现的次数,个数的平方就是这个数可以构成的数对,最后加一起就可以了。 #include<bits/stdc++.h> #define ll lo 阅读全文
posted @ 2023-03-11 09:00 north_h 阅读(70) 评论(0) 推荐(0)
摘要: 点这里 A题 构造数列 这题么是很简单的,签到题,但是我好像想复杂了,罚时太长了,直接取出每一位不为零的数即可。 比赛时的做法 属实是个铁憨憨 #include <iostream> #include <cstring> #include <algorithm> #include<vector> u 阅读全文
posted @ 2023-02-19 09:00 north_h 阅读(13) 评论(0) 推荐(0)
摘要: 蓝桥杯模拟赛 4 A题 刷题统计 签到题,简单计算一下即可,一周为一个周期 #include<iostream> #include<cstring> #include<algorithm> #include<cstdio> #include<cmath> #include<vector> #incl 阅读全文
posted @ 2023-02-17 09:00 north_h 阅读(15) 评论(0) 推荐(0)
摘要: A题 首字母大写 签到题 #include<iostream> #include<cstring> #include<algorithm> #include<cstdio> #include<cmath> #include<vector> #include<set> #include<queue> 阅读全文
posted @ 2023-02-12 09:00 north_h 阅读(16) 评论(0) 推荐(0)
摘要: 蓝桥杯模拟赛 3 A题 特殊年份 签到题 #include<iostream> #include<cstring> #include<algorithm> #include<cstdio> #include<cmath> #include<vector> #include<set> #define 阅读全文
posted @ 2023-02-11 09:00 north_h 阅读(28) 评论(0) 推荐(0)