08 2023 档案

摘要:## 题目描述 You are given n intervals and m points on the number line. The i -th intervals covers coordinates [li,ri] and the i -th 阅读全文
posted @ 2023-08-25 17:51 灰鲭鲨 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Let c be some positive integer. Let's call an array a1,a2,,an of positive integers c -array, if for all i condition $ 1 \l 阅读全文
posted @ 2023-08-25 17:47 灰鲭鲨 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Problem StatementThere are N cards numbered 1 through N. Each face of a card has an integer written on it; card i has Ai on its front and $ 阅读全文
posted @ 2023-08-24 23:02 灰鲭鲨 阅读(11) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 LuoTianyi gives you an array a of n integers and the index begins from 1 . Define g(i,j) as follows: - g(i,j) is the large 阅读全文
posted @ 2023-08-24 22:46 灰鲭鲨 阅读(31) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 跳蚤国有 n 座城市,分别编号为 1n1 号城市为首都。所有城市分布在一个w×h 范围的网格上。每座城市都有一个整数坐标 (x,y)(1xw,1yh),不同城市的坐标不相同。 在跳蚤国中共 阅读全文
posted @ 2023-08-24 18:08 灰鲭鲨 阅读(20) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-08-24 17:57 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-08-24 17:27 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-08-08 20:35 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-08-08 20:26 灰鲭鲨 阅读(1) 评论(0) 推荐(0) 编辑
摘要:PS 国是一个拥有诸多城市的大国。国王 Louis 为城市的交通建设可谓绞尽脑汁。Louis 可以在某些城市之间修建道路,在不同的城市之间修建道路需要不同的花费。 Louis 希望建造最少的道路使得国内所有的城市连通。但是由于某些因素,城市之间修建道路需要的花费会随着时间而改变。Louis 会不断得 阅读全文
posted @ 2023-08-08 19:40 灰鲭鲨 阅读(48) 评论(0) 推荐(0) 编辑
摘要:费马小定理:对于任意一个质数满足:ap11(modp) 二次探测:对于任意一个奇质数满足:x21(modp) 的解为 x=1x=p1 将两个定理结合起来,设 p1=u×2t,那么计算出 au 次方后不断进行平方计 阅读全文
posted @ 2023-08-06 23:25 灰鲭鲨 阅读(13) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 John Doe offered his sister Jane Doe find the gcd of some set of numbers a . Gcd is a positive integer g , such that all number from t 阅读全文
posted @ 2023-08-06 23:17 灰鲭鲨 阅读(11) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 现有一个字符串 S。 Tiffany 将从中划出 na 个子串作为 A 类串,第 i 个(1ina)为 Ai=S(lai,rai)。 类似地,Yazid 将划出 nb 个子串作为 B 类串, 阅读全文
posted @ 2023-08-06 23:03 灰鲭鲨 阅读(12) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 小 A 被选为了 ION2018 的出题人,他精心准备了一道质量十分高的题目,且已经把除了题目命名以外的工作都做好了。 由于 ION 已经举办了很多届,所以在题目命名上也是有规定的,ION 命题手册规定:每年由命题委员会规定一个小写字母字符串,我们称之为那一年的命名串,要求每道题的名 阅读全文
posted @ 2023-08-06 22:40 灰鲭鲨 阅读(34) 评论(0) 推荐(0) 编辑
摘要:注意,下面的运算都是在模意义下进行的。 给定 n,求 x2n x 存在条件为 np12=1,证明用费马小定理,略。 如何求出 x,随机一个 **不存在** 二次剩余的值 a2n,设为 w2 这里可以把 w 理解为一个虚数。 阅读全文
posted @ 2023-08-06 20:44 灰鲭鲨 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Problem StatementThere are 2N players, numbered 1,2,...,2N. They decided to hold a tournament. The tournament proceeds as follows: Choose a p 阅读全文
posted @ 2023-08-03 20:21 灰鲭鲨 阅读(18) 评论(0) 推荐(0) 编辑
摘要:## 题目描述 由于你不会设计哥德尔机,所以你决定先做一道数据结构题: 给定一个长度为 n 的序列 a1an。你需要回答 m 个询问,第 i 个询问给定一个区间 [li,ri],请你求出这个区间中所有非空子集的最大公约数的乘积。由于答案可能很大,每次询问请你 阅读全文
posted @ 2023-08-03 19:55 灰鲭鲨 阅读(36) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示