题目传送门:B-Icebound and Sequence(19年河北省赛) 题目大意: 等比数列求和,结果取模 分析: 因为取模操作,直接运用等比数列求和公式无法做出,所以需要用到公式 求等比为k的等比数列之和S[n]..当n为偶数..S[n] = S[n/2] + pow(k,n/2) * S[ ...
分类:
其他好文 时间:
2019-05-26 15:48:15
阅读次数:
152
Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such th ...
分类:
其他好文 时间:
2019-05-26 09:45:18
阅读次数:
99
由于主库表空间不足,同事给表空间增加数据文件,第二天收到反馈说备库未同步。 1、主、备查看归档序列号,发现主、备归档正常同步。 2、在主库端查询v$archived_log视图,确认日志是否被应用 3、在备库查看接收到的被应用的redo,发现日志未被应用 4、处理方式: 现在备库中建立了对应的文件夹 ...
分类:
其他好文 时间:
2019-05-24 19:04:46
阅读次数:
161
一、数据类型 1、基本数据类型 Hive 支持关系型数据中大多数基本数据类型 类型描述示例 boolean true/false TRUE tinyint 1字节的有符号整数 -128~127 1Y smallint 2个字节的有符号整数,-32768~32767 1S int 4个字节的带符号整数 ...
分类:
数据库 时间:
2019-05-24 10:31:19
阅读次数:
129
128. Longest Consecutive Sequence Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm sh ...
分类:
Web程序 时间:
2019-05-24 00:58:51
阅读次数:
143
在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接.第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SEND状态,等待服务器确认; SYN:同步序列编号(Synchronize Sequence Numbers)第二次握手:服务器收到syn包 ...
分类:
其他好文 时间:
2019-05-23 23:06:02
阅读次数:
168
import java.util.*; public class Solution { public ArrayList > FindContinuousSequence(int sum) { if(sum > list = new ArrayList>(); for(int i = 1; i su... ...
分类:
其他好文 时间:
2019-05-23 14:29:41
阅读次数:
194
127. Word Ladder Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from begin ...
分类:
Web程序 时间:
2019-05-23 00:13:45
阅读次数:
147
126. Word Ladder II Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord ...
分类:
Web程序 时间:
2019-05-22 23:52:20
阅读次数:
315
链接:https://codeforces.com/contest/1167/problem/A 题意: A telephone number is a sequence of exactly 11 digits, where the first digit is 8. For example, t ...
分类:
其他好文 时间:
2019-05-21 15:54:36
阅读次数:
176