最新 最热

POJ 1845-Sumdiv(厉害了这个题)

Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901). Input

2020-10-28
1

数学--数论--HDU2136 Largest prime factor 线性筛法变形

问数的编号,素数的话就是第几个素数就是他的编号如 2-1 3-2 5-3 7-4非素数就是最小的素因子的序号是他的序号。修改后的线筛完事。

2020-10-28
0

数学--数论--HDU--5878 Count Two Three 2016 ACM/ICPC Asia Regional Qingdao Online 1001

这个题的意思是让你找到一个k大于n并且能写成 2 a 3 ......

2020-10-28
0

CF--思维练习--CodeForces - 221C-H - Little Elephant and Problem (思维)

ACM思维题训练集合 The Little Elephant has got a problem — somebody has been touching his sorted by non-decreasing array a of length n and possibly swapped some elemen...

2020-10-28
1

POJ 2230 Watchcow 欧拉回路的DFS解法(模板题)

Watchcow Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 9974 Accepted: 4307 Special Judge Description

2020-10-28
1

POJ - 3278 Catch That Cow 简单搜索

Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line an...

2020-10-28
1

POJ - 1321 棋盘问题

在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。...

2020-10-28
0

HDU - 1253 胜利大逃亡(搜索)

Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.  魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)...

2020-10-28
1

POJ - 3074 Sudoku (搜索)剪枝+位运算优化

In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. For example,

2020-10-28
1

Sentinel断路器与熔断降级【源码笔记】

Sentinel的熔断降级通过断路器实现,本文通过介绍熔断器的定义、如何构建熔断器、断路器校验逻辑、断路器状态转换、异常/慢调用熔断流量是如何统计等方面梳理断路器的工作原理和实现方式。...

2020-10-26
1