首页 > TAG信息列表 > P2392

洛谷P2392 kkksc03考前临时抱佛脚

题目链接:https://www.luogu.com.cn/problem/P2392 两种思路: 1、常规搜索 2.、dp0/1背包问题 这里本人只提供第一种思路,因为第二种思路我也不会(怎么就成了0/1背包)? 第一种思路具体内容: 这里知道我们在题目中有左右两个脑子,那就本题而言 我们在做某个学科的题目时,无非就是利用两个脑

P2392 kkksc03考前临时抱佛脚

// Problem: P2392 kkksc03考前临时抱佛脚 // Contest: Luogu // URL: https://www.luogu.com.cn/problem/P2392 // Memory Limit: 125 MB // Time Limit: 1000 ms // User: Pannnn #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(f