1579: 蓝桥杯算法提高VIP-陶陶摘苹果2(感谢支持) 摘要:参考代码:int main() { int sum = 0;//定义变量sum的值为0,方便以后计算 cin>>a>>b;//输入a和b的值 for(int i=0;i…… 题解列表 2023年07月18日 0 点赞 1 评论 255 浏览 评分:7.3
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int main(){ int n,maxx=1,…… 题解列表 2023年07月18日 0 点赞 0 评论 448 浏览 评分:0.0
题解 2821: 开关灯(先五星再复制) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int a[10000] ; int main() { int n,m ; …… 题解列表 2023年07月18日 0 点赞 3 评论 359 浏览 评分:6.8
题解 2821: 开关灯 摘要:解题思路:首先,如何确定每盏灯的开关?——可以用1代表初始值“开”。for(int i=1;i<=n;i++) { light[i]=1; }接下来,如何表示每个人对灯的反向操作?for…… 题解列表 2023年07月18日 1 点赞 2 评论 822 浏览 评分:9.9
3020: 最大数位置 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,sum;int c[1000000];int main(){ cin >>a; …… 题解列表 2023年07月18日 0 点赞 0 评论 674 浏览 评分:9.9
查找特定的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n,x; …… 题解列表 2023年07月18日 0 点赞 0 评论 369 浏览 评分:0.0
2901: 查找特定的值 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,d;int c[1000000];int main(){ int sum=1; …… 题解列表 2023年07月18日 0 点赞 0 评论 430 浏览 评分:9.9
****************************************************************************字符逆序******************** 摘要:解题思路:注意事项:参考代码:// 题目 1093: 字符逆序#include <bits/stdc++.h>#include <bits/stdc++.h> using namespace std;…… 题解列表 2023年07月18日 0 点赞 0 评论 332 浏览 评分:0.0
2804: 与指定数字相同的数的个数 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b;int c[1000000];int main(){ int sum=0; …… 题解列表 2023年07月18日 0 点赞 0 评论 367 浏览 评分:9.9
向量点积计算 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[10000],b[10000],sum=0;int main(){…… 题解列表 2023年07月18日 0 点赞 0 评论 383 浏览 评分:9.9