上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 97 下一页
摘要: 【唯一分解定理】 对于任意一个大于 1 的正整数 n,都有且只有一种方式写出其素因子的乘积表达式。 即:,其中, 均为素数 因此,当给出一个数 n 时,可以暴力枚举,以获取 n 的素因子 map num;//记录素因子个数int factor[N],cntF;... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(155) 评论(0) 推荐(0)
摘要: Problem Description Let's denote d(n) as the number of divisors of a positive integer n. You are given three integers a, b and ... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(13) 评论(0) 推荐(0)
摘要: Problem Description Stancu likes space travels but he is a poor software developer and will never be able to buy his own spacec... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(30) 评论(0) 推荐(0)
摘要: 题目描述 给出一个有理数 ,求c mod 19260817的值。 输入输出格式 输入格式: 一共两行。 第一行,一个整数a。 第二行,一个整数b。 对于所有数据,0≤a,b≤10^10001 输出格式: 一个整数,代表求余后的结果。如果无解... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(52) 评论(0) 推荐(0)
摘要: 题目描述 给定n,p求1~n中所有整数在模p意义下的乘法逆元。 输入输出格式 输入格式: 一行n,p 1≤n≤3×10^6 ,n#include#include#include#include#include#include#include#in... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(19) 评论(0) 推荐(0)
摘要: Problem Description You are given an elliptical shaped land and you are asked to choose n arbitrary points on its boundary. The... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(28) 评论(0) 推荐(0)
摘要: Problem Description Given a list of N integers with absolute values no larger than 10 15, find a non empty subset of these numb... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(101) 评论(0) 推荐(0)
摘要: 【概述】 集合,是集合论中主要研究对象,是指具有某种特定性质的具体的或抽象的对象汇总而成的集体,其中,构成集合的这些对象则称为该集合的元素。 集合中元素的数目称为集合的基数,集合 A 的基数记作:card(A),当其为有限大时,集合 A 称为有限集,反之则为无... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(544) 评论(0) 推荐(0)
摘要: Problem Description One day Petya got a birthday present from his mom: a book called "The Legends and Myths of Graph Theory". F... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(87) 评论(0) 推荐(0)
摘要: Problem Description General Payne has a battalion of n soldiers. The soldiers' beauty contest is coming up, it will last for k ... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(35) 评论(0) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 97 下一页