码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
题解 CF446C 【DZY Loves Fibonacci Numbers】
# 题解 CF446C这是一道数据结构题。 我们先翻译下题目: 给你一个n,给你一个长度为n的序列,给你一个m,给你m此操作,包括区间修改和查询,修改为在一个区间内每个数加上他所对应的斐波那契数,查询为查询区间和。 一看到区间修改和区间查询,我们就可以知道这是一道线段树的题目(不要问我怎么知道的,~ ...
分类:其他好文   时间:2020-02-01 16:21:14    阅读次数:80
LeetCode 479 - Largest Palindrome Product - Hard ( Python)
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
LeetCode | No.1 两数之和
题目描述: 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 无线连接手机设备
连接语法: $ 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
PAT甲级——1073 Scientific Notation (20分)
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
【cf1286B】B. Numbers on Tree(贪心)
"传送门" 题意: 给出一颗有根树,每个结点有一个权值$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
PAT Advanced 1063 Set Similarity (25分)(STL)
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
StringUtils.format用法
String.format()字符串常规类型格式化的两种重载方式 format(String format, Object… args) 新字符串使用本地语言环境,制定字符串格式和参数生成格式化的新字符串。 format(Locale locale, String format, Object… a ...
分类:其他好文   时间:2020-01-29 14:09:29    阅读次数:102
Codeforces Round #612
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
7694条   上一页 1 ... 38 39 40 41 42 ... 770 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!