yliu_cs
yliu_cs
全部文章
分类
未归档(308)
归档
标签
去牛客网
登录
/
注册
yliu_cs的博客
全部文章
(共308篇)
CCPC-Wannafly Winter Camp Day2 (Div2, onsite)
H. Cosmic Cleaner Description: 在一片小行星带里有 n n n 颗小行星,它们在万有引力的作用下绕着一颗...
2019-02-07
0
492
CCPC-Wannafly Winter Camp Day1 (Div2, onsite)
B. 吃豆豆 Description: w l s wls ...
2019-02-05
0
402
CodeCraft-19 and Codeforces Round #537 (Div. 2)
2019春节前爆炸掉分的一夜 A. Superhero Transformation Description: We all know that a superhero can transform to certain other superheroes. But not all Superh...
2019-02-04
0
528
51nod 1239 欧拉函数之和(杜教筛)
Description: 对正整数n,欧拉函数是小于或等于n的数中与n互质的数的数目。此函数以其首名研究者欧拉命名,它又称为Euler’s totient function、φ函数、欧拉商数等。例如:φ(8) = 4(Phi(8) = 4),因为1,3,5,7均和8互质。 S(n) = Phi(...
2019-02-03
0
652
51nod 1244 莫比乌斯函数之和(杜教筛)
Description: 莫比乌斯函数,由德国数学家和天文学家莫比乌斯提出。梅滕斯(Mertens)首先使用μ(n)(miu(n))作为莫比乌斯函数的记号。具体定义如下: 如果一个数包含平方因子,那么miu(n) = 0。例如:miu(4), miu(12), miu(18) = 0。 如果一...
2019-02-03
0
451
Codeforces Round #536 (Div. 2)
这场cf开局打的顺风顺水,1h内做出4题的时候能加100+rating,可惜由于被卡评测的原因unrated了,好气呦 A. Lunar New Year and Cross Counting Description: Lunar New Year is approaching, and yo...
2019-01-31
0
407
洛谷 P2257 YY的GCD(莫比乌斯反演)
Description: 神犇YY虐完数论后给傻×kAc出了一题 给定N, M,求1<=x<=N, 1<=y<=M且gcd(x, y)为质数的(x, y)有多少对 kAc这种傻×必然不会了,于是向你来请教…… 多组输入 Input: 第一行一个整数T 表述数据组数...
2019-01-31
0
375
BZOJ 2301 [HAOI2011]Problem b(莫比乌斯反演+容斥原理)
Description: 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input: 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、d、k Output 共n行,每行一个...
2019-01-31
0
333
2017 ACM-ICPC World Finals A Airport Construction(计算几何)
Description: The tropical island nation of Piconesia is famous for its beautiful beaches, lush vegetation, cocoa and coffee plantations, and wonderfu...
2019-01-26
0
586
Hexo主题Sally 0.10测试版本发布
Demo hexo-theme-sally Hexo主题Sally拥有以下特点: 简洁精致的界面设计 功能齐全的个人资料及友链设置 支持Latex公式 更加快捷的响应速度(后续优化,敬请期待) 护目养眼的代码高亮,清楚的行号标注,多高亮配色支持(后续更新,敬请期...
2019-01-16
0
491
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页