数论
文章平均质量分 60
圆溜溜的奶黄包
这个作者很懒,什么都没留下…
展开
-
//十进制转千进制//同余模定理//The Embarrassed Cryptographer------二H题
The young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his company. The cryptographic keys are created原创 2018-01-28 13:54:18 · 406 阅读 · 0 评论 -
//防止数据溢出先除再乘//辗转相除法求最大公约数最小公倍数------一I
The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 15 is 105. Inpu...原创 2018-02-11 23:14:08 · 406 阅读 · 0 评论 -
//哈夫曼编码//同余模定理//二叉树//Find The Multiple------五A
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there原创 2018-02-22 16:38:26 · 331 阅读 · 0 评论