摘要: 只要有一个珠子缺少,那么就是缺少珠子,我们需要将缺少的珠子(mp[x]<0的)加起来。 #include <bits/stdc++.h> using namespace std; char cs[1100],cs2[1100]; map<char,int> mp; int main(){ cin>> 阅读全文
posted @ 2024-04-17 20:35 YuKiCheng 阅读(10) 评论(0) 推荐(0)
摘要: 把单位统一了做减法。 #include <bits/stdc++.h> using namespace std; int c1,c2,c3; int a1,a2,a3; int main(){ scanf("%d.%d.%d",&c1,&c2,&c3);//应该支付 scanf("%d.%d.%d" 阅读全文
posted @ 2024-04-17 20:06 YuKiCheng 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int n; int a[110],c[110]; int main(){ cin>>n; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++) cin>> 阅读全文
posted @ 2024-04-17 18:52 YuKiCheng 阅读(7) 评论(0) 推荐(0)
摘要: 没做出来,看dalao的,dalao超巨。 注意的点: 分子0的处理/计算公约数的时候取正不然会改变正负性 reduction为核心方法 #include <bits/stdc++.h> using namespace std; #define ll long long struct Fractio 阅读全文
posted @ 2024-04-17 17:04 YuKiCheng 阅读(15) 评论(0) 推荐(0)
摘要: 如果是小写字母,需要转化为大写,然后判断bad里面有没有。 如果是大写字母,需要判断bad里面有没有以及上档键是不是坏了。 如果是其他,判断bad里面有没有。 #include <bits/stdc++.h> using namespace std; #define ll long long int 阅读全文
posted @ 2024-04-17 15:15 YuKiCheng 阅读(6) 评论(0) 推荐(0)
摘要: 直观:(25分) #include <bits/stdc++.h> using namespace std; #define ll long long vector<ll> vec; map<ll,int> mp;//元素-所在下标 int main(){ int n; ll p; cin>>n>> 阅读全文
posted @ 2024-04-17 11:00 YuKiCheng 阅读(7) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ char s1[100],s2[100]; cin>>s1>>s2; //按照次序来 vector<char> vec; int j = 0; for(int i=0;i<strlen 阅读全文
posted @ 2024-04-17 10:09 YuKiCheng 阅读(6) 评论(0) 推荐(0)