简单的分支和循环语句解决问题 摘要:解题思路:用数组存储队列,再用循环去循环遍历数组,同时进行报数,每当报数到3为数组元素赋0以表示退出报数,更具体思路请看注释注意事项:思路很简单,主要是要理解两个关键变量i,j的重置条件和重置值。参考…… 题解列表 2024年07月12日 0 点赞 0 评论 212 浏览 评分:9.9
1511: 蓝桥杯算法提高VIP-复数求和 摘要:**问题描述:**从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。 **解题思路:** 1.创建链表,申请头结点 2.void* str_Buynode(…… 题解列表 2024年07月12日 0 点赞 0 评论 306 浏览 评分:9.9
1089:A + Bwhile循环通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,i;int a,sum;int main(){ cin >> n; w…… 题解列表 2024年07月12日 0 点赞 0 评论 141 浏览 评分:9.9
1088:A + B通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a,sum;int main(){ while(cin >>…… 题解列表 2024年07月12日 0 点赞 0 评论 212 浏览 评分:9.9
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 152 浏览 评分:0.0
题解 2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;using namespace std;const int N=1e5+1;ch…… 题解列表 2024年07月12日 0 点赞 0 评论 138 浏览 评分:0.0
题解 2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s,10…… 题解列表 2024年07月12日 0 点赞 2 评论 153 浏览 评分:9.9
2852: 配对碱基链 摘要:```cpp #include using namespace std; const int N = 1e7; typedef long long ll; char a[N]; int …… 题解列表 2024年07月12日 0 点赞 0 评论 116 浏览 评分:0.0
getline的使用 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[1000]; cin.getline(c,1000); …… 题解列表 2024年07月12日 1 点赞 0 评论 308 浏览 评分:0.0
2852: 配对碱基链 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 102 浏览 评分:0.0