摘要:
kuangbin带你飞:点击进入新世界 文章目录 1.Max Sum Plus Plus 原题链接:传送门 2.Ignatius and the Princess IV 原题链接:传送门 思路:hash存储(感觉和dp没啥关系啊。。) #include<bits/stdc++.h> using na 阅读全文
摘要:
A new e-mail service "Berlandesk" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon a 阅读全文
摘要:
Xenia lives in a city that has n houses built along the main ringroad. The ringroad houses are numbered 1 through n in the clockwise order. The ringro 阅读全文
摘要:
题目链接 Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each r 阅读全文
摘要:
https://codeforces.com/problemset/problem/489/C C. Given Length and Sum of Digits... You have a positive integer m and a non-negative integer s. Your 阅读全文
摘要:
介绍下概念:简单来说,启发式搜索就是对取和不取都做分析,从中选取更优解(或删去无效解) 例题:P1048 采药 所有的启发式搜索都会有一个估价函数。下面是这一题的估价函数。 const int N = 105; struct Node { int a, b; // a代表时间,b代表价值 doubl 阅读全文