码迷,mamicode.com
首页 >  
搜索关键字:radix    ( 316个结果
1010 Radix
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:其他好文   时间:2020-03-28 13:19:11    阅读次数:58
字符串转整形 整形转字符串 等一系列转换
/*********************** *函数功能:整形转字符串 *输入参数: indata 输入整形 outdata 输出字符串 radix 进制 十进制则填 10 *返回值 :输出字符串 ************************/ char *int_to_char(int i ...
分类:其他好文   时间:2020-03-20 20:11:43    阅读次数:82
java方式实现基数排序
一、基数排序描述 基数排序(radix sort)属于"分配式排序"(distribution sort),又称"桶子法"(bucket sort)或bin sort,顾名思义,它是透过键值的部份资讯,将要排序的元素分配至某些"桶"中,藉以达到排序的作用,基数排序法是属于稳定性的排序。基数排序有二种 ...
分类:编程语言   时间:2020-03-15 21:56:55    阅读次数:66
两种多关键字排序代码
#include<iostream> #include<iomanip> #include<ctime> #include<fstream> #include<string> #define radix 10 using namespace std; clock_t start,stop; //学生 ...
分类:编程语言   时间:2020-03-14 16:37:55    阅读次数:82
1010 Radix (25分)
这题值得一做。好题。20个测试点,吓死。第一次写13分,是没理解题意,修修补补得24分,第7个测试点没通过,必须要用二分查找。改用二分查找拿了满分。列一下需要注意的几个点(我把给出进制的数叫做基准数,让我们求出进制的数叫做所求数): 1.进制数最大不是36,进制数会非常非常大,可能超出int表示的范 ...
分类:其他好文   时间:2020-03-11 00:53:51    阅读次数:95
无符号int(十进制/十六进制)转字符串string
std::string uint2string(const uint32_t value, int radix /*= 10*/) { std::string strString = ""; switch (radix) { case 10: strString = std::to_string(v ...
分类:其他好文   时间:2020-03-05 18:02:00    阅读次数:84
PAT 1010 Radix (二分)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is , if 6 is a decimal number and 110 is a bi ...
分类:其他好文   时间:2020-02-20 12:54:51    阅读次数:69
算法集合
https://www.runoob.com/w3cnote/radix-sort.html 算法系列 1.0 十大经典排序算法 1.1 冒泡排序 1.2 选择排序 1.3 插入排序 1.4 希尔排序 1.5 归并排序 1.6 快速排序 1.7 堆排序 1.8 计数排序 1.9 桶排序 1.10 基 ...
分类:编程语言   时间:2020-02-17 12:27:17    阅读次数:57
PAT甲组 1010 Radix (二分)
1010 Radix (25分) Given a pair of positive integers, for example, $6$ and $110$, can this equation $6 = 110$ be true? The answer is , if 6 is a decimal ...
分类:其他好文   时间:2020-02-10 13:52:09    阅读次数:60
A1010
#include<iostream> #include<cstdio> #include<cctype> #include<math.h> #include <algorithm> using namespace std; long long loop(string s,long long min, ...
分类:其他好文   时间:2020-01-15 09:57:55    阅读次数:88
316条   上一页 1 2 3 4 5 ... 32 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!