ymkzpx

Success and failure are temporary.


  • Home

  • Archives

  • Tags

  • About

Codeforces1047C 数学

Posted on 2018-09-23 | In ACM , codeforces , 数学

给n个数,问最少删除几个数使得删后序列的gcd大于n个数的gcd
$(n\le 3·10^5,a_i\le 10^7)$

Read more »

POJ 3666 dp

Posted on 2018-09-23 | In ACM , POJ , DP

给一个长度为 $n$ 的序列 $a$,每次可以对这个序列的任意一个数 $+1$ 或者 $-1$ 代价都是 $1$,问使序列 $a$ 变成(不严格)单调的最小代价。
$n\le2000,a_i\le10^9$

Read more »

HDU1828 矩形周长并

Posted on 2018-09-23 | In ACM , HDU , 线段树

经典问题

Read more »

HDU1705 皮克定理

Posted on 2018-09-23 | In ACM , HDU , 计算几何

给定一个三角形三点坐标,问三角形内有多少个坐标均为整数的点。

Read more »

HDU1542 矩形面积并

Posted on 2018-09-23 | In ACM , HDU , 线段树

这么经典的东西竟然原来都没写过(…

Read more »

HDU6222 打表/pell方程、高精度

Posted on 2018-09-23 | In ACM , ICPC , HDU , 打表 , 佩尔pell , 高精度

给一个 $n$,找出最小大于等于 $n$ 的最小的 $t$,三角形的三边长为$t-1,t,t+1$且面积为整数。
$(n\le10^{30})$

Read more »

HDU6152 拉姆齐Ramsey定理

Posted on 2018-09-23 | In ACM , HDU , 数学

Ramsey定理内容:在一个 $n\geq6$ 的完全图$K_{n}$内,每边涂上红或蓝色,必然有一个红色的三角形或蓝色的三角形

Read more »

HDU3292 佩尔pell方程、矩阵快速幂

Posted on 2018-09-23 | In ACM , HDU , 数学 , 佩尔pell

给出n,k,满足$x^2-ny^2=1$,若存在输出第$k$的$x\mod8191$。
$(n<29,k\le10^9)$

Read more »

BZOJ1257 整除分块

Posted on 2018-09-23 | In ACM , BZOJ , 数学

$$
\sum_{i=1}^{i=n}k\mod i \ (n,k\le 10^9)
$$

Read more »

BZOJ1031 后缀数组

Posted on 2018-09-23 | In ACM , 学习笔记 , 字符串

把一个字符串 $S$ 排成一圈,从每个字符开始读一圈,把每次读到的字符串排序,按顺序将每个串的最后一个字符排成一个新字符串,求新字符串。($|S|\le10^5$)

Read more »
1…91011…22
Kzpx

Kzpx

Hello the cruel world.

215 posts
133 categories
100 tags
GitHub
Links
  • CS-Notes
  • Ali-CsNotes
  • Deadline
  • luowentao
  • biubiubiu
  • Gstnt
  • ecnu
  • Lzy
  • Menci
  • kuangbin
  • meopass
  • tokitsukaze
  • cubercsl
  • Claris
  • hzwer
  • qscqesze
  • ICPCCamp
  • ZYF
  • xehoth
  • Ocean
  • MrBird_to_fly
  • starry_sky
  • Multi-school AC>=20
  • snowy_smile
  • fjzzq2002
© 2019 Kzpx
Powered by Hexo
|
Theme — NexT.Mist v5.1.4