1181: 不容易系列2(错排问题,简单的动态规划) 摘要:解题思路:错排问题,规律就是 第 n 项 =(第 n-1 项 + 第 n-2 项)*(n-1);当然啦,要从 3个数开始。注意事项:参考代码:#include<iostream>using names…… 题解列表 2024年07月13日 0 点赞 0 评论 403 浏览 评分:0.0
1180: 不容易系列(逆向思维求解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int T; cin >> T; while (T--) { int…… 题解列表 2024年07月13日 0 点赞 0 评论 245 浏览 评分:0.0
1089:A + Bwhile循环通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,i;int a,sum;int main(){ cin >> n; w…… 题解列表 2024年07月12日 0 点赞 0 评论 253 浏览 评分:9.9
1088:A + B通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a,sum;int main(){ while(cin >>…… 题解列表 2024年07月12日 0 点赞 0 评论 328 浏览 评分:9.9
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 258 浏览 评分: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 评论 247 浏览 评分:0.0
题解 2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s,10…… 题解列表 2024年07月12日 1 点赞 2 评论 256 浏览 评分:10.0
2852: 配对碱基链 摘要:```cpp #include using namespace std; const int N = 1e7; typedef long long ll; char a[N]; int …… 题解列表 2024年07月12日 0 点赞 0 评论 201 浏览 评分:0.0
getline的使用 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[1000]; cin.getline(c,1000); …… 题解列表 2024年07月12日 1 点赞 0 评论 433 浏览 评分:0.0