摘要:
f[i][j] = min{max{f[k - 1][j], f[i - k][j - 1]} + 1}; 然后因为最多1000,2^10=1024所以超过10个蛋都没用了,所以就if(m > 10){m = 10;} 代码:#include <stdio.h>#include <string.h>#include <stdlib.h>#define max(a, b) ((a)>(b)?(a):(b))int f[1001][1001];void deal(int m, int n){ int t, s; int i, j, k; if(m & 阅读全文