随笔分类 - 数学
摘要:#include <iostream> #include <sstream> #include <fstream> #include <string> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.
阅读全文
摘要:题目描述 现在我们要把这n个数字首尾连接组成一个环,使得相邻元素互质的对数尽可能多。请输出最大对数。 输入描述: 一行一个整数n(1≤ n≤ 1000)。 输出描述: 一行一个整数表示答案。 示例1 输入 4 输出 4 说明 样例的一种构造方法为1 4 3 2。样例一的一种构造方法也可以是1 2 3
阅读全文
摘要:描述 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. Fo
阅读全文
摘要:描述 Etéreo 是个爱学习的好孩子。在年假期间,他依然热情于数学。他最近发现了一个高大上的东西:,他觉得这里的 非常的厉害!然后他又告诉你:,,他会告诉你 和 ,想请你告诉他 的值。当然这是一个小数,所以请你在小数点后保留 位。 Etéreo 是个“问题小子”,有很多询问,请你一一回答。 注意,
阅读全文

浙公网安备 33010602011771号