题目描述: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0 ...
分类:
其他好文 时间:
2018-07-31 21:54:55
阅读次数:
117
题意:给一个长度为L的线段,把它分成一些份,其中每份的长度∈[2A,2B]且为偶数,而且不能在某一些区间内部切开,求最小要分成几份 设f[i]为在i处切一刀,前面的满足要求的最小份数,则f[L]为答案 f[i]=min(f[j])+1,2A<=i-j<=2B,i,j可以切维护一个单调队列,每次取出来 ...
分类:
其他好文 时间:
2018-07-27 13:21:42
阅读次数:
124
题目描述 There is a bar of chocolate with a height of H blocks and a width of W blocks. Snuke is dividing this bar into exactly three pieces. He can only ...
分类:
其他好文 时间:
2018-07-10 21:28:44
阅读次数:
123
题目 分析 听说是水题,但还是没想出来。 $ dp[i] $为$ [1,i] $的需要的喷头数量。 那么$ dp[i]=min(dp[j])+1 $其中$ j<i $ 这是个$ O(n^2)$的东西,用单调队列优化一下就行了 复杂度$ O(L) $ 代码 #include <bits/stdc++. ...
分类:
其他好文 时间:
2018-06-18 11:00:43
阅读次数:
202
It’s commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They were both so e ...
分类:
其他好文 时间:
2018-06-15 22:39:11
阅读次数:
191
Ezio learned a lot from his uncle Mario in Villa Auditore. He also made some contribution to Villa Auditore. One of the contribution is dividing it in ...
分类:
其他好文 时间:
2018-06-11 15:44:34
阅读次数:
215
Problem description One day Ms Swan bought an orange in a shop. The orange consisted of n·k segments, numbered with integers from 1 to n·k. There were ...
分类:
其他好文 时间:
2018-06-09 00:02:05
阅读次数:
225
http://acm.hdu.edu.cn/showproblem.php?pid=1059 Dividing Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submissi ...
分类:
其他好文 时间:
2018-06-05 21:20:46
阅读次数:
186
题目描述: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0 ...
分类:
其他好文 时间:
2018-05-13 19:04:02
阅读次数:
152
【题意】:https://www.cnblogs.com/bluefly hrbust/p/8971769.html 【分析】: "ACZone+" 【出处】: "CodeForces 899C Dividing the numbers" 【代码】: include include include ...
分类:
其他好文 时间:
2018-04-29 22:06:49
阅读次数:
288