1181: 不容易系列2(错排问题,简单的动态规划) 摘要:解题思路:错排问题,规律就是 第 n 项 =(第 n-1 项 + 第 n-2 项)*(n-1);当然啦,要从 3个数开始。注意事项:参考代码:#include<iostream>using names…… 题解列表 2024年07月13日 0 点赞 0 评论 296 浏览 评分:0.0
1180: 不容易系列(逆向思维求解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int T; cin >> T; while (T--) { int…… 题解列表 2024年07月13日 0 点赞 0 评论 163 浏览 评分:0.0
合并循环,让代码更简洁 摘要:解题思路:// 用循环做,本质上是寻找i与空格,i与*的关系注意事项://注意寻找各个变量与i的关系参考代码:Scanner sc=new Scanner(System.in);String str=…… 题解列表 2024年07月13日 0 点赞 0 评论 455 浏览 评分:2.0
简单的分支和循环语句解决问题 摘要:解题思路:用数组存储队列,再用循环去循环遍历数组,同时进行报数,每当报数到3为数组元素赋0以表示退出报数,更具体思路请看注释注意事项:思路很简单,主要是要理解两个关键变量i,j的重置条件和重置值。参考…… 题解列表 2024年07月12日 0 点赞 0 评论 239 浏览 评分:9.9
1511: 蓝桥杯算法提高VIP-复数求和 摘要:**问题描述:**从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。 **解题思路:** 1.创建链表,申请头结点 2.void* str_Buynode(…… 题解列表 2024年07月12日 0 点赞 0 评论 332 浏览 评分: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 评论 168 浏览 评分:9.9
1088:A + B通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a,sum;int main(){ while(cin >>…… 题解列表 2024年07月12日 0 点赞 0 评论 236 浏览 评分:9.9
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 177 浏览 评分: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 评论 155 浏览 评分:0.0