알고리즘 문제 풀이/1DP_과제(~180615)
171225_12790_Mini Fantasy War
//https://www.acmicpc.net/problem/12790 #include using namespace std; int main(){ int T; cin >> T; int hp, mp, atk,def; int a,b,c,d,ans; for(int i=0; i> hp >> mp >> atk >> def >> a >> b >> c >> d; hp+=a; mp+=b; atk+=c; def+=d; if(hp