1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { float a[8] = { 0,0,2,1,1,1,0,0 }; scanf_s("%f", &a[0]);…… 题解列表 2023年07月18日 0 点赞 0 评论 303 浏览 评分:0.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ //比赛n轮,输入n ,小A的周期长度na,小B的周…… 题解列表 2023年07月18日 0 点赞 0 评论 423 浏览 评分:0.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ //比赛n轮,输入n ,小A的周期长度na,小B的周…… 题解列表 2023年07月18日 0 点赞 0 评论 394 浏览 评分:0.0
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n,m; …… 题解列表 2023年07月18日 0 点赞 0 评论 346 浏览 评分:2.0
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 评论 260 浏览 评分:7.3
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int main(){ int n,maxx=1,…… 题解列表 2023年07月18日 0 点赞 0 评论 451 浏览 评分:0.0
2877: 同行列对角线的格子(有点麻烦,但非常好使) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std ; int a[100][100] ; int b[100][100] ;…… 题解列表 2023年07月18日 0 点赞 0 评论 832 浏览 评分:9.9
陶陶摘苹果2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n,m,su…… 题解列表 2023年07月18日 0 点赞 0 评论 390 浏览 评分:0.0
题解 2821: 开关灯(先五星再复制) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int a[10000] ; int main() { int n,m ; …… 题解列表 2023年07月18日 0 点赞 3 评论 362 浏览 评分:6.8
题解 2821: 开关灯 摘要:解题思路:首先,如何确定每盏灯的开关?——可以用1代表初始值“开”。for(int i=1;i<=n;i++) { light[i]=1; }接下来,如何表示每个人对灯的反向操作?for…… 题解列表 2023年07月18日 1 点赞 2 评论 831 浏览 评分:9.9