Math
数论相关内容
CHE_NG程
这个作者很懒,什么都没留下…
展开
-
【牛客】3005 C-子段乘积
wucif链接:https://ac.nowcoder.com/acm/contest/3005/C来源:牛客网题目描述给出一个长度为 n 的数列 a1,a2,…,an,求其长度为 k 的连续子段的乘积对 998244353 取模余数的最大值。输入描述:第一行两个整数n,k。第二行n个整数,a1,a2,…,an。输出描述:输出一个整数,代表最大余数。示例1输入5 31 ...原创 2020-02-12 20:34:37 · 297 阅读 · 0 评论 -
【牛客】3004 H- 牛牛的k合因子数
链接:https://ac.nowcoder.com/acm/contest/3004/H来源:牛客网题目描述合数是指自然数中除了能被1和本身整除外,还能被其他数(0除外)整除的数。牛牛最近在研究“k合因子数”,所谓“k合数”是指一个数的所有因子中,是合数的因子共有k个。例如20的因子有1,2,4,5,10,20,其中4,10,20为合数,它有3个合数因子,就称20是一个 “3合因子数”...原创 2020-02-10 12:02:01 · 214 阅读 · 0 评论 -
【Codeforces】1208A. XORinacci
题目描述Cengiz recently learned Fibonacci numbers and now he is studying different algorithms to find them. After getting bored of reading them, he came with his own new type of numbers that he named XOR...原创 2020-01-17 15:05:32 · 414 阅读 · 0 评论 -
【Codeforces】1215A. Yellow Cards
题目描述The final match of the Berland Football Cup has been held recently. The referee has shown nn yellow cards throughout the match. At the beginning of the match there were a1a1 players in the first ...原创 2020-01-16 13:15:05 · 189 阅读 · 0 评论 -
【Codeforces】1217A. Creating a Character
题目描述You play your favourite game yet another time. You chose the character you didn’t play before. It has strstr points of strength and intint points of intelligence. Also, at start, the character ha...原创 2020-01-15 16:35:05 · 168 阅读 · 0 评论 -
【Codeforces】1220B. Multiplication Table
题目描述Sasha grew up and went to first grade. To celebrate this event her mother bought her a multiplication table MM with nn rows and nn columns such that Mij=ai⋅ajMij=ai⋅aj where a1,…,ana1,…,an is som...原创 2020-01-15 15:32:46 · 212 阅读 · 0 评论 -
【Codeforces】1221A. 2048 Game
题目描述You are playing a variation of game 2048. Initially you have a multiset ss of nn integers. Every integer in this multiset is a power of two.You may perform any number (possibly, zero) operations...原创 2020-01-14 17:50:51 · 290 阅读 · 0 评论 -
【Codeforces】1221C. Perfect Team
题目描述You may have already known that a standard ICPC team consists of exactly three members. The perfect team however has more restrictions. A student can have some specialization: coder or mathematic...原创 2020-01-14 14:53:40 · 214 阅读 · 0 评论