KurumiIl
KurumiIl
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
真的想不明白
全部文章
(共7篇)
2024牛客寒假算法基础集训营6
D-友谊的套路 考点:数学 思路:注意一下两个人都可以让二追三,需要概率相加 #include <bits/stdc++.h> using namespace std; int main() { double p;cin>>p; cout<<(...
C
C++
2024-02-24
0
70
2024牛客寒假算法基础集训营5
A-mutsumi的质数合数 思路:除了数字1,不是质数就是合数 #include <bits/stdc++.h> using namespace std; int a[110]; int main() { int n;cin>>n; int res=0;...
C
C++
2024-02-22
0
65
2024牛客寒假算法基础集训营4
A-柠檬可乐 纯签到题 #include <bits/stdc++.h> using namespace std; int main() { int a,b,k;cin>>a>>b>>k; cout<<(a>=k*b?"goo...
C
C++
2024-02-22
0
71
2024牛客寒假算法基础集训营3
A 智乃与瞩目狸猫、幸运水母、月宫龙虾 考点 :语法题 思路:判断首字母是否相同或互为大小写即可,先全部转化为同一种形式 #include <bits/stdc++.h> using namespace std; string s1,s2; int main() { c...
C
C++
2024-02-07
0
122
2024牛客寒假算法基础集训营2
A Tokitsukaze and Bracelet 考点:分类 条件判断即可,签到题 #include<bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_s...
C
C++
2024-02-07
0
93
2024牛客寒假算法基础集训营1
A DFS搜索 考点:双指针 思路:从左往右和目标字串依次比较,用bool来标记即可 #include <bits/stdc++.h> using namespace std; string s; string s1 = "dfs"; string s2 = "DFS"; int n...
2024-02-02
1
125
长江师范学院第二次校赛
A 观星者 分类考虑四种情况即可 #include<iostream> using namespace std; int main(){ int x1,x2,x3,y1,y2,y3; cin>>x1>>y1>>x2>>...
C
C++
2024-01-21
1
106