编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<ctype.h>using namespace std;int main(){ int a,b,c; f…… 题解列表 2022年03月20日 0 点赞 0 评论 346 浏览 评分:0.0
编写题解 1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<ctype.h>using namespace std;int main(){ string str; …… 题解列表 2022年03月20日 0 点赞 0 评论 286 浏览 评分:0.0
2086: 蓝桥杯算法提高VIP-最长公共子序列 摘要:解题思路:(1)最长公共子序列和最长公共子串的区别是,前者可以不连续,后者必须是连续的。(2)因此在构造状态转移方程时,比较的两个字母不相同时,前者的最优解为不包含任意一个字母的两个子串的最优解的较大…… 题解列表 2022年03月20日 0 点赞 0 评论 680 浏览 评分:9.9
蓝桥杯算法提高VIP-质数的后代 摘要:#include<iostream>using namespace std;bool is_prime(int n){ if(n==1) return false; for(int i=2…… 题解列表 2022年03月20日 0 点赞 0 评论 417 浏览 评分:0.0
!!!!终于不再报错(c++代码) 摘要:解题思路:直接上代码(血泪史啊)注意事项: 不要忽略其他字符!!尤其考虑空格 ,我使用的函数是getline();参考代码#include <iostream>using n…… 题解列表 2022年03月20日 0 点赞 0 评论 471 浏览 评分:0.0
c++,暴力做法 摘要:解题思路:注意事项:中间一位时只能是奇数,偶数的话中间就能有两位参考代码:#include<iostream>#include<vector>#include<algorithm>using name…… 题解列表 2022年03月19日 0 点赞 0 评论 387 浏览 评分:0.0
暴力模拟!! 摘要:```cpp #include using namespace std; bool check(int k){ int isflag = 0; while(k){ …… 题解列表 2022年03月19日 0 点赞 0 评论 285 浏览 评分:0.0
最简单枚举(c++) 摘要:## 解释: 3241 符合条件吧,最大值为4,最小值为1,4 - 1 = 3(总共的数-1) 354 再来一个:最大值为5,最小值未3, 5 - 3 = 2(总共的数-1) ## 代…… 题解列表 2022年03月19日 0 点赞 0 评论 698 浏览 评分:9.9
摩西摩西!! 摘要:```cpp #include using namespace std; int main(){ double n; while(cin >> n){ …… 题解列表 2022年03月19日 0 点赞 0 评论 410 浏览 评分:0.0
c++理财计划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;class maney{public:int n;float k,p; };int …… 题解列表 2022年03月19日 0 点赞 0 评论 399 浏览 评分:0.0