剔除相关数 (C语言代码) 摘要:#include<bits/stdc++.h> using namespace std; int len(int n) { int L=0; while(n) { n/=10;…… 题解列表 2018年11月21日 0 点赞 0 评论 512 浏览 评分:2.0
剔除相关数-题解(C语言代码) 摘要:#include #include int f1(int a,int b) { int p[10],q[10]; int i,j,x=0,y=0; while(a) { p…… 题解列表 2019年07月02日 0 点赞 0 评论 616 浏览 评分:2.0
剔除相关数 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,j,k,l,m,n,t=0,p,flag=1,N; int a[1000][100],b[1000],c[100…… 题解列表 2018年03月05日 1 点赞 0 评论 841 浏览 评分:6.0
剔除相关数-题解(C语言代码)值得参考 满分代码 摘要:###### 题目: 问题 1190: 剔除相关数 时间限制: 1Sec 内存限制: 128MB 提交: 359 解决: 150 题目描述 一个数与另一个数如果含有相同数字和个数的字符…… 题解列表 2019年11月29日 0 点赞 0 评论 1520 浏览 评分:8.8
C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 376 浏览 评分:9.9
剔除相关数 (C语言代码) 摘要:解题思路:如何判断2个数相关是关键: 对一个数如果把其中的数字由大到小排列.如1345 排成5431 …… 题解列表 2017年08月03日 5 点赞 1 评论 2186 浏览 评分:9.9
剔除数组中的相关数 摘要: 稍微有点复杂 大致思路: 将数组中每个数的各个位上的数字相加 如果两个数字各个位上的数字之和相等说明两个数相关 其实有一个bug 如果判断214和43那…… 题解列表 2024年03月22日 0 点赞 0 评论 193 浏览 评分:9.9
1190: 剔除相关数 摘要:```cpp #include #include #include #include using namespace std; mapma; setse; struct str { …… 题解列表 2022年12月10日 0 点赞 0 评论 204 浏览 评分:9.9
剔除相关数(map ,set, sort ,stringstream函数) 摘要:```cpp #include using namespace std; int main() { string s; int n; while(cin>>n&&n) { …… 题解列表 2022年07月28日 0 点赞 0 评论 202 浏览 评分:9.9
1190: 剔除相关数 摘要:这个题目的难点在于剔除含有相同数字和个数的字符,本蒟蒻第一时间想到的是将每个数字改成字符串然后将每个字符串都排序一遍,这样就变成了相同的数。ac代码:#include<bits/stdc++.h> …… 题解列表 2022年07月27日 0 点赞 0 评论 227 浏览 评分:9.9