getline的使用 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[1000]; cin.getline(c,1000);…… 题解列表 2024年07月12日 1 点赞 0 评论 366 浏览 评分:0.0
2852: 配对碱基链 摘要:```cpp #include using namespace std; const int N = 1e7; typedef long long ll; char a[N]; int …… 题解列表 2024年07月12日 0 点赞 0 评论 161 浏览 评分:0.0
题解 2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s,10…… 题解列表 2024年07月12日 0 点赞 2 评论 188 浏览 评分:9.9
题解 2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;using namespace std;const int N=1e5+1;ch…… 题解列表 2024年07月12日 0 点赞 0 评论 173 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 193 浏览 评分:0.0
1088:A + B通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a,sum;int main(){ while(cin >>…… 题解列表 2024年07月12日 0 点赞 0 评论 256 浏览 评分: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 评论 183 浏览 评分:9.9
1511: 蓝桥杯算法提高VIP-复数求和 摘要:**问题描述:**从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。 **解题思路:** 1.创建链表,申请头结点 2.void* str_Buynode(…… 题解列表 2024年07月12日 0 点赞 0 评论 356 浏览 评分:9.9
简单的分支和循环语句解决问题 摘要:解题思路:用数组存储队列,再用循环去循环遍历数组,同时进行报数,每当报数到3为数组元素赋0以表示退出报数,更具体思路请看注释注意事项:思路很简单,主要是要理解两个关键变量i,j的重置条件和重置值。参考…… 题解列表 2024年07月12日 0 点赞 0 评论 257 浏览 评分:9.9
合并循环,让代码更简洁 摘要:解题思路:// 用循环做,本质上是寻找i与空格,i与*的关系注意事项://注意寻找各个变量与i的关系参考代码:Scanner sc=new Scanner(System.in);String str=…… 题解列表 2024年07月13日 0 点赞 0 评论 479 浏览 评分:2.0