iPlayForSG
iPlayForSG
全部文章
分类
差分(1)
广度优先搜索 - BFS(2)
数论 - 素数(3)
未归档(1)
深度优先搜索 - DFS(1)
归档
标签
去牛客网
登录
/
注册
iPlayForSG的博客
全部文章
(共8篇)
[BZOJ2242] 计算器 题解
Description 你被要求设计一个计算器完成以下三项任务: 1、给定y,z,p,计算Y^Z Mod P 的值; 2、给定y,z,p,计算满足xy≡ Z ( mod P )的最小非负整数; 3、给定y,z,p,计算满足Y^x ≡ Z ( mod P)的最小非负整数。 Input 输入包含多组...
2019-04-13
2
21819
[BZOJ1053] 反素数 题解
题目描述 对于任何正整数x,其约数的个数记作g(x)。例如g(1)=1、g(6)=4。 如果某个正整数x满足:g(x)>g(i) 0<i<x,则称x为反质数。例如,整数1,2,4,6等都是反质数。 现在给定一个数N,你能求出不超过N的最大的反质数么? 输入输出格式 输入格...
2019-03-30
0
2980
[POJ2689] Prime Distance 题解
Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number ...
2019-03-28
2
31410
[POJ3460] Booksort 题解
Description The Leiden University Library has millions of books. When a student wants to borrow a certain book, he usually submits an online loan for...
2019-03-16
0
585
[HDU3085] Nightmare Ⅱ 题解
Problem Description Last night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately....
2019-03-14
0
585
另外一个blog
很明显是洛谷blog qwq 以前的大多数题解都在这(可能会不定期搬运) https://www.luogu.org/blog/RuriGokou/
2019-03-12
0
1359
[CH2601] 电路维修 题解
描述 Ha'nyu是来自异世界的魔女,她在漫无目的地四处漂流的时候,遇到了善良的少女Rika,从而被收留在地球上。Rika的家里有一辆飞行车。有一天飞行车的电路板突然出现了故障,导致无法启动。 电路板的整体结构是一个R行C列的网格(R,C≤500),如右图所示。每个格点都是电线的接点,每个格子都包...
2019-03-12
0
646
[CF739B] Alyona and a tree 详解
B. Alyona and a tree Alyona has a tree with n vertices. The root of the tree is the vertex 1. In each vertex Alyona wrote an positive integer, in the ...
2019-03-12
0
1379