BOJ 14728 : 벼락치기
www.acmicpc.net/problem/14728 14728번: 벼락치기 ChAOS(Chung-ang Algorithm Organization and Study) 회장이 되어 일이 많아진 준석이는 시험기간에도 일 때문에 공부를 하지 못하다가 시험 전 날이 되어버리고 말았다. 다행히도 친절하신 교수님께서 아래와 www.acmicpc.net 이 문제는 설명할 필요가 없다. 그냥 배낭 dp문제이다. 그러니까 그냥 하면 된다. #include #define MEM 300009 #define sanic ios_base::sync_with_stdio(0) #define x first #define y second using namespace std; typedef long long ll; const ll MOD..
2021.01.10