摘要:
Codeforces Round448 C 题目大意 n个数(n include include include include include include include include include define N 100005 const int inf=0x3f3f3f3f; def 阅读全文
摘要:
Big is Better 题目大意:用火柴拼数字,每个数字需要的火柴如下图,共有n(n include include define N 3003 const int inf=0xfffffff; using namespace std; int f[]={6,2,5,5,4,5,6,3,7,6} 阅读全文
摘要:
Beautiful numbers 题意:挑选出数字,这些数字能被他们的非0位整除。 思路:数位DP,由于1~9的最大公倍数是2520, ,再对有可能用到的余数进行离散化。 代码如下: Cpp include include include include define N 3000 typedef 阅读全文
摘要:
E. Subordinates time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are n workers in a 阅读全文
摘要:
D. Sea Battle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Sea Battle time limit pe 阅读全文