제출 #1015844

#제출 시각아이디문제언어결과실행 시간메모리
1015844Unforgettablepl비스킷 담기 (IOI20_biscuits)C++17
0 / 100
1081 ms9820 KiB
#include <bits/stdc++.h> using namespace std; const int LIMIT = 60; long long DP[LIMIT+2][20004]; long long count_tastiness(long long x, std::vector<long long> a) { DP[0][0]=1; a.resize(LIMIT+2); for(long long i=0;i<=LIMIT;i++){ for(long long j=0;j<=20003;j++){ DP[i+1][j] = DP[i][max(0ll,min(20003ll,2ll*(j-a[i])))] + DP[i][max(0ll,min(20003ll,2ll*(j-a[i]+x)))]; } } return DP[LIMIT+1][0]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...