- 博客(5)
- 收藏
- 关注
原创 tyvj p1005 采药[背包]
#include #include #include using namespace std; int T, M; int t[105], v[105]; int f[1005]; int main() { //freopen("medic.in", "r", stdin); //freopen("medic.out", "w", stdout); scanf("
2014-08-30 11:18:42 360 1
原创 tyvj p1004 滑雪[dp]
#include #include #include using namespace std; int map[105][105],dp[101][101]; int dx[4] = {-1, 1, 0, 0}; int dy[4] = {0, 0, 1, -1}; int r, c; int dfs(int x, int y) { if(dp[x][y] != 0)
2014-08-30 11:17:28 348
原创 tyvj p1003- 越野跑
#include #include #include using namespace std; char road[100005]; int road_t[100005]; int main() { int M, T; int U, F, D; scanf("%d%d%d%d%d", &M, &T, &U, &F, &D); for(int i = 1;
2014-08-16 23:50:24 645
原创 tyvj p1002- 谁拿了最多奖学金[模拟]
#include #include #include #include using namespace std; struct stu { string name; int no; int score, score_2, paper, money = 0; char leader, western; }student[105]; bool cmp(cons
2014-08-16 22:44:47 261
原创 tyvj p1001- 第K极值[模拟]
#include #include #include #include #include using namespace std; bool isPrime(int x) { bool flag = true; for(int i = 2; i <= sqrt(x); ++i) if(x % i == 0) { f
2014-08-16 19:31:16 295
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人