2911: 连续出现的字符 摘要:```cpp #include #include using namespace std; int main() { int k,s=0; char ch[100000]…… 题解列表 2022年12月02日 0 点赞 0 评论 412 浏览 评分:9.9
题解 2900: 螺旋加密 摘要:解题思路:用a数组螺旋填写,b数组记录字符串代表的数字,d数组表示数字对应的五位二进制,c数组用来标记是否填写过。注意事项:利用了位运算参考代码:#include <algorithm>#includ…… 题解列表 2022年12月02日 0 点赞 0 评论 505 浏览 评分:9.9
三位数分解 摘要:注意事项:换行符\n 参考代码: ###### #include using namespace std; int main(){ int a; scanf("%d",&a); …… 题解列表 2022年12月01日 0 点赞 0 评论 669 浏览 评分:9.9
简单题,取每一位的进制为max(max(A[i],B[i])+1,2LL) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//简单题 using namespace std;#define maxn 1010#define maxma 10001…… 题解列表 2022年12月01日 0 点赞 0 评论 928 浏览 评分:9.5
01背包(动态规划) 摘要:解题思路:动态规划 对于01背包问题选择方法的集合可以分成2种: ①不选第i个物品,并且总体积不大于j的集合所达到的最大值:f[i-1][j] ②选择1~i个物品,并且总体积不大于j的集合所达…… 题解列表 2022年12月01日 0 点赞 0 评论 619 浏览 评分:9.9
2846: 统计数字字符个数 摘要:```cpp #include #include using namespace std; int main() { int s=0; char a[255]; …… 题解列表 2022年11月30日 0 点赞 0 评论 373 浏览 评分:8.0
2916: 谁考了第k名 摘要:```cpp #include using namespace std; struct s { int xuehao; double chengji; }; int m…… 题解列表 2022年11月30日 0 点赞 0 评论 336 浏览 评分:9.9
2921: 整数奇偶排序 摘要:```cpp #include using namespace std; int main() { int odd[10],even[10],num,i,j,l=0,r=0; …… 题解列表 2022年11月30日 0 点赞 0 评论 367 浏览 评分:9.9
2907: 不与最大数相同的数字之和 摘要:```cpp #include using namespace std; int main() { int N,a[100],sum=0,x=0; cin>>N; …… 题解列表 2022年11月30日 0 点赞 0 评论 434 浏览 评分:9.0
2905: 最大值和最小值的差 摘要:```cpp #include using namespace std; int main() { int M,max=-10001,min=10001,x; cin>>M…… 题解列表 2022年11月30日 0 点赞 0 评论 504 浏览 评分:9.9