题目链接: "LightOJ 1030" Description You are in a cave, a long cave! The cave can be represented by a $1 \times N$ grid. Each cell of the cave can contain ...
分类:
其他好文 时间:
2019-10-13 20:48:29
阅读次数:
113
1222 Path with Maximum Gold 可以攻击国王的皇后 问题描述 在一个 8x8 的棋盘上,放置着若干 和一个 。 在棋盘上的位置分布用整数坐标数组 表示, 的坐标用数组 表示。 的行棋规定是: 横、直、斜 都可以走,步数不受限制,但是,不能 越子行棋 。 请你返回可以直接攻击到 ...
分类:
其他好文 时间:
2019-10-13 17:14:50
阅读次数:
88
1219 Path with Maximum Gold 黄金矿工 问题描述 你要开发一座金矿,地质勘测学家已经探明了这座金矿中的资源分布,并用大小为 的网格 进行了标注。每个单元格中的整数就表示这一单元格中的黄金数量;如果该单元格是空的,那么就是 。 为了使收益最大化,矿工需要按以下规则来开采黄金: ...
分类:
其他好文 时间:
2019-10-12 20:21:30
阅读次数:
104
1 typedef long long ll; 2 typedef pair<int,int> P; 3 #define _for(i,a,b) for(register int i = (a);i < b;i ++) 4 #define _rep(i,a,b) for(register int i... ...
分类:
其他好文 时间:
2019-10-06 15:05:38
阅读次数:
69
关于作者 作者背景:公元2001年,意大利那不勒斯少年,为了达成梦想,在国庆的三天发现自己替身能力Java。从而加入了黑手党组织,并成为...... 作者目的:入门Java 为了Fighting Gold 关于游戏 游戏说明:参考了不少的代码,但是自带点点点点思想创新,一个简陋无比但是有点点创意的J ...
分类:
其他好文 时间:
2019-10-05 20:05:18
阅读次数:
147
FORMAT() 函数 FORMAT 函数用于对字段的显示进行格式化。 SQL FORMAT() 语法 SQL FORMAT() 实例 我们拥有下面这个 "Products" 表: Prod_IdProductNameUnitUnitPrice 1 gold 1000 g 32.35 2 silve ...
分类:
数据库 时间:
2019-09-27 10:42:30
阅读次数:
191
#include <stdlib.h> #include <stdio.h> int num; typedef struct a { int name[60]; int gold; int sliver; int bronze; ListNode list; }infoss; int maxGI, ...
分类:
其他好文 时间:
2019-09-16 23:55:43
阅读次数:
188
#include <stdlib.h> #include <stdio.h> int num; typedef struct a { int name[60]; int gold; int sliver; int bronze; ListNode list; }infoss; int maxGI, ...
分类:
其他好文 时间:
2019-09-16 23:28:51
阅读次数:
83
题目链接 "题目链接 http://poj.org/problem?id=3274" 题意 输入每头牛的特征的10进制,若i~j头牛中每个数位的特征相等则满足要求,求所有满足要求的j i的最大值。 解题思路 1. 抽屉原理,用前缀和处理每个数位即可。 2. 直接暴力的话复杂度太大了,所以需要取巧的办 ...
分类:
其他好文 时间:
2019-09-07 13:08:41
阅读次数:
99
描述Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= ...
分类:
其他好文 时间:
2019-08-27 21:27:16
阅读次数:
111