
C语言
disparity_CJK
我只是一个菜鸟,但我会尽快变成老鹰
展开
-
UVA 213 Message Decoding
DescriptionSome message encoding schemes require that an encoded message be sent in two parts. The first part, called the header, contains the characters of the message. The second part contains a原创 2016-09-28 21:52:27 · 888 阅读 · 2 评论 -
UVA 202 Repeating Decimals
【题意】 给你两个数n和m(0例: 输入: 76 25 5 43 1 397 输出: 76/25 = 3.04(0) 1 = number of digits in repeating cycle 5/43 = 0.(116279069767441860465) 21原创 2016-09-21 21:50:36 · 472 阅读 · 0 评论 -
CSU 1781 阶乘除法
阶乘除法Description输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则 n!/m!=6!/3!=720/6=120。是不是很简单?现在让我们把问题反过来:输入 k=n!/m!,找到这样的整数二元组(n,m) (n>m>=1)。如果答案不唯一,n原创 2016-09-05 07:46:34 · 759 阅读 · 0 评论 -
C语言sprintf与sscanf函数[总结]
C语言sprintf与sscanf函数[总结]转载于:http://www.cnblogs.com/Anker/p/3351168.html1、前言 我们经常涉及到数字与字符串之间的转换,例如将32位无符号整数的ip地址转换为点分十进制的ip地址字符串,或者反过来。从给定的字符串中提取相关内容,例如给定一个地址:http://www.bokeyuan.cn:234转载 2016-05-24 11:32:01 · 536 阅读 · 0 评论