![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LCM && GCD
CrossDolphin
青春看起来如此完美,没空闲去浪费时间。
展开
-
两个数的最大公约数
主要是为了记下gcd函数的代码!!! #include #include #include #include #include #include #include #include #include #include #define mst(ss,b) memset((ss),(b),sizeof(ss)) #define maxn 0x3f3f3f3f using namespace std;原创 2015-01-30 22:21:47 · 471 阅读 · 0 评论 -
2016 [Offer收割]编程练习赛3 A B
链接:戳这里 #1283 : hiho密码 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 小Ho根据最近在密码学课上学习到的知识,开发出了一款hiho密码,这款密码的秘钥是这样生成的:对于一种有N个字母的语言,选择一个长度为M的单词;将组成这个单词的所有字母按照顺序不重复的写出(即遇到相同字母时跳过);然后将字母表剩下的没有使用过的字母按原创 2016-03-27 19:53:26 · 579 阅读 · 0 评论 -
Codeforces Round #325 (Div. 2) E 数论
链接:戳这里 E. Alice, Bob, Oranges and Apples time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Alice and Bob decided to eat some fruit.原创 2016-07-09 21:52:39 · 372 阅读 · 0 评论 -
Codeforces Round #318 [RussianCodeCup Thanks-Round] (Div. 2) C 模拟
链接:戳这里 C. Bear and Poker time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Limak is an old brown bear. He often plays poker with h原创 2016-07-13 14:36:35 · 221 阅读 · 0 评论 -
Codeforces Round #360 (Div. 2) D 数学题
链接:戳这里 D. Remainders Game time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Today Pari and Arya are playing a game called Remainder原创 2016-07-04 22:23:23 · 340 阅读 · 0 评论 -
Codeforces Round #323 (Div. 2) C gcd
链接:戳这里 C. GCD Table time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The GCD table G of size n × n for an array of positive integ原创 2016-07-08 21:15:51 · 364 阅读 · 0 评论