tf.app.flags.DEFINE_integer('num_blocks', 1, 'Number of blocks in each attention') tf.app.flags.DEFINE_integer('num_heads', 8, 'Number of heads in eac ...
分类:
其他好文 时间:
2020-11-10 11:08:36
阅读次数:
6
class Solution { public List<List<Integer>> subsets(int[] nums) { List<List<Integer>> res = new ArrayList<>(); res.add(new ArrayList<>()); for(int i = ...
分类:
其他好文 时间:
2020-11-08 16:53:04
阅读次数:
16
1、为什么Java中1000==1000为false而100==100为true? 当 int 类型值 在 -127 到 127 之间,两个变量的引用地址是相同的。Integer.java 类,有一个内部私有类,IntegerCache.java缓存了从-128到127之间的所有的整数对象。 Int ...
分类:
编程语言 时间:
2020-11-08 16:41:31
阅读次数:
18
题面 t 组数据。 给定参数 p,q,求一个最大的 x,满足 \((x|p)∧(q?x)\)。 $1\le t \le 500$,$1\le p \le10^{18}$,$2\le q\le10^9$, $1S$,$512MB$。 思路 当 \(p < q\) 时 或 \(q?p\),答案显然是 \ ...
分类:
其他好文 时间:
2020-11-06 01:36:59
阅读次数:
15
delphi TStringList 用法详解 //TStringList 常用方法与属性 :var List: TStringList; i: Integer;begin List := TStringList.Create; List.Add('Strings1'); {添加} List.Add ...
Codeforces Round #680 C. Division 首先判断pi能否整除qi,不能这答案就是pi,否则,将$q_i$分解质因数,将qi的每个因子从pi中剔除成不能被$q_i$整除的数,pi剔除完后就是$x_i$,且$x_i$不能被$q_i$。记录个最大的$x_i$ 举例说明 \(p_ ...
分类:
其他好文 时间:
2020-11-04 19:08:12
阅读次数:
22
package LeetCode_153 /** * 153. Find Minimum in Rotated Sorted Array https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Suppose an ar ...
分类:
其他好文 时间:
2020-11-01 10:11:19
阅读次数:
19
状态转移方程的定义为:dp( K,i ) 表示经历 K 站乘坐到 flight[i] 航班终点的最低票价。 因为 flight 中的元素存在前后置关系,所以乘坐某航班的上一航班的集合是可以确定的。 dp( K,i ) = Math.min( dp( K-1,j ) ),其中 j 为可以作为上一趟航班 ...
分类:
其他好文 时间:
2020-11-01 10:08:43
阅读次数:
15
* Created by cws */ @Data public class ResultVM implements Serializable { private static final long serialVersionUID = 1L; public static final Integer ...
分类:
其他好文 时间:
2020-10-31 01:21:33
阅读次数:
20
You are given a sorted unique integer array nums. Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, ...
分类:
其他好文 时间:
2020-10-30 11:55:20
阅读次数:
20