蓝桥杯算法提高VIP-数字黑洞-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main(){ int n; cin>>n;…… 题解列表 2022年01月29日 0 点赞 0 评论 172 浏览 评分:0.0
1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码:n=input() s=0 while n!=6174: ls=[int(i) for i in str(n) if i.isdigit()] i…… 题解列表 2022年03月11日 0 点赞 0 评论 115 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞 摘要:#include<iostream>#include<algorithm>using namespace std;int cnt=0;int fun(int n){ int sum[4]; …… 题解列表 2022年03月16日 0 点赞 0 评论 143 浏览 评分:0.0
列表、字符串、整数型三者的转换 摘要:解题思路:注意事项:参考代码:a=input()b=0while True: x=sorted(a,reverse=True) x=list(map(str,x)) x='&…… 题解列表 2022年04月07日 0 点赞 0 评论 236 浏览 评分:0.0
编写题解 1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:主要是字符串和整数,数组和字符串,String和StringBuffer类型之间的转换,搞清楚就很简单了,逻辑上转得有点复杂,需要耐心去体体验注意事项:参考代码:package Test;i…… 题解列表 2022年06月13日 0 点赞 0 评论 155 浏览 评分:0.0
小南解题--数字黑洞--55ms 摘要:a=list(input())cu=n=0while n!=6174: a.sort(reverse=True) b=a[:] a.sort() c=a[:] n=in…… 题解列表 2022年08月27日 0 点赞 0 评论 123 浏览 评分:0.0
1530: 蓝桥杯算法提高VIP-数字黑洞(java) 摘要:```java import java.util.*; public class Main { public static void main(String[] args) { …… 题解列表 2023年03月04日 0 点赞 0 评论 153 浏览 评分:0.0
WU-蓝桥杯算法提高VIP-数字黑洞 (C++代码) 摘要:题目比较简单。。。参考代码:#include<iostream> #include<algorithm> using namespace std; int fmax(int n) { i…… 题解列表 2017年12月20日 3 点赞 0 评论 941 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞 (C语言代码) 摘要:解题思路:两个调用函数用来排序,,主函数调用即可;使得函数清晰明确注意事项:参考代码:#include<stdio.h>int max(int b){ int x[4]={0},i,j,n=0,tem…… 题解列表 2019年03月16日 0 点赞 0 评论 457 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int p(int n);int main(){ int i,n; scanf("%d",&n); if…… 题解列表 2018年02月07日 1 点赞 0 评论 735 浏览 评分:0.0