# 题解 CF446C这是一道数据结构题。 我们先翻译下题目: 给你一个n,给你一个长度为n的序列,给你一个m,给你m此操作,包括区间修改和查询,修改为在一个区间内每个数加上他所对应的斐波那契数,查询为查询区间和。 一看到区间修改和区间查询,我们就可以知道这是一道线段树的题目(不要问我怎么知道的,~ ...
分类:
其他好文 时间:
2020-02-01 16:21:14
阅读次数:
80
Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest palindro ...
分类:
编程语言 时间:
2020-02-01 10:47:36
阅读次数:
78
题目描述: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would h ...
分类:
其他好文 时间:
2020-01-31 12:38:32
阅读次数:
93
连接语法: $ adb connect ip:port 断开连接: $ adb disconnect ip:port 可能遇到问题:unable to connect to 192.168.199.248:5555: Connection refused 解决办法(设置监听端口): su 切换roo ...
分类:
移动开发 时间:
2020-01-30 19:19:40
阅读次数:
197
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+ ...
分类:
其他好文 时间:
2020-01-30 18:59:25
阅读次数:
58
"传送门" 题意: 给出一颗有根树,每个结点有一个权值$a_i,1\leq a_i\leq 10^9$;同时,每个结点有一个值$c_i$,表示其子树中有多少个结点,满足$a_j include include include include include include include inclu ...
分类:
其他好文 时间:
2020-01-30 00:00:30
阅读次数:
129
Given two sets of integers, the similarity of the sets is defined to be /, where N?c?? is the number of distinct common numbers shared by the two sets ...
分类:
其他好文 时间:
2020-01-29 21:54:49
阅读次数:
84
String.format()字符串常规类型格式化的两种重载方式 format(String format, Object… args) 新字符串使用本地语言环境,制定字符串格式和参数生成格式化的新字符串。 format(Locale locale, String format, Object… a ...
分类:
其他好文 时间:
2020-01-29 14:09:29
阅读次数:
102
Garland题意题解代码Numbers on Tree题意题解代码Garland题目链接 http://codeforces.com/contest/1286/problem/A题意给出一串灯泡,灯泡上编号为 1~n 的一个排列,其中一些灯泡掉落。定义整串的权值为相邻灯泡编号奇偶不同的对数,求放回... ...
分类:
其他好文 时间:
2020-01-28 23:36:10
阅读次数:
134
You are given an undirected graph consisting of nn vertices and mm edges. Your task is to find the number of connected components which are cycles. He ...
分类:
其他好文 时间:
2020-01-28 19:13:14
阅读次数:
152