摘要: 在学习java虚拟机时认识了native方法 native是什么 一个Native Method就是一个Java调用非Java代码的接口。我们把这类接口称为JNI(Java Native Interface),它提供了若干的API实现了Java和其他语言的通信(主要是C&C++),它允许Java代码 阅读全文
posted @ 2019-06-02 10:30 见风仍是风 阅读(1450) 评论(0) 推荐(0) 编辑
摘要: Description TT and FF are ... friends. Uh... very very good friends ________ b FF is a bad boy, he is always wooing TT to play the following game with 阅读全文
posted @ 2019-04-11 09:26 见风仍是风 阅读(160) 评论(0) 推荐(0) 编辑
摘要: cf上一道题,不知道前缀和怎么也找不到做法。 其实是二分检查时用到前缀和,代码如下: c++ include include include include include include include using namespace std; typedef long long ll; cons 阅读全文
posted @ 2019-03-11 19:11 见风仍是风 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Description Mr.Dog was fired by his company. In order to support his family, he must find a new job as soon as possible. Nowadays, It's hard to have a 阅读全文
posted @ 2019-03-03 23:28 见风仍是风 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 做了NOIP的题,是动态规划背包问题的典例。 采药 输入格式: 第一行有2个整数T(1≤T≤1000)和M(1≤M≤100),用一个空格隔开,T代表总共能够用来采药的时间,M代表山洞里的草药的数目。 接下来的M行每行包括两个在1到100之间(包括1和100)的整数,分别表示采摘某株草药的时间和这株草 阅读全文
posted @ 2019-03-01 00:21 见风仍是风 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 并查集是将元素按需要进行集合合并及查找的方法,使用数组pre[x]表示x的上级元素。 1.查找。 可用pre[x]==x来表示x为该集合的根,用根来做这个集合的代表,查找时使用递归找到根判断该元素所在集合。 2.合并。 只需将一个集合的根设为另一个集合的上级就可以完成两个集合的合并。 但有很大的可能 阅读全文
posted @ 2019-02-24 21:18 见风仍是风 阅读(130) 评论(0) 推荐(0) 编辑