- 博客(3)
- 收藏
- 关注
原创 kuafgaiubf
package fab;abstract class GeometricObject implements Comparable<GeometricObject>{ public int compareTo(GeometricObject s) { if(s.getArea() > getArea()) { return 1; }else if(s.getArea() =...
2018-06-07 17:03:53 91
原创 背包问题
01背包:#include<bits/stdc++.h> using namespace std; int dp[105][105]; int main() { int weight[105], value[105]; int n, V, Max; scanf("%d %d", &n, &V); for(int i = 1; i <= n; i++) { ...
2018-05-27 17:06:07 99
原创 腾讯面试
#include<stdio.h>#include<time.h>#include<stdlib.h>int m[99999999],B[99999999];int T(unsigned int n) ///递归求解{ if(n == 0 || n == 1){ return 1; }else if(n == 2){ return 2; }else{...
2018-03-13 11:15:54 137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人