CSS函数(方法)参考 CSS函数用作各种CSS属性的值。 ...
分类:
Web程序 时间:
2019-09-23 12:03:41
阅读次数:
118
Given an array of strings, group anagrams together. Example: All inputs will be in lowercase. The order of your output does not matter. 解法: 首先遍历输入,同时对 ...
分类:
其他好文 时间:
2019-09-23 11:38:29
阅读次数:
92
INFS7410 Project - Part 2PreambleThe due date for this assignment is 19 September 2019 17:00 Eastern Australia Standard Time,together with part 1.This ...
分类:
其他好文 时间:
2019-09-19 19:21:44
阅读次数:
55
Fish eating fruit $$ Time Limit: 1000 ms \quad Memory Limit: 262144 kB $$ 题意 大体的题意就是给出一棵树,求每一对点之间的距离,然后把该距离存在距离 $\mod 3$ 的位置,输出总和。 思路 令两个 $dp$ 数组和两个辅助 ...
分类:
其他好文 时间:
2019-09-16 23:59:32
阅读次数:
259
链接: https://nanti.jisuanke.com/t/41403 题意: State Z is a underwater kingdom of the Atlantic Ocean. This country is amazing. There are nn cities in the ...
分类:
其他好文 时间:
2019-09-15 16:50:38
阅读次数:
137
"题目传送门" 题意:求一颗树中所有点对(a,b)的路径长度,路径长度按照模3之后的值进行分类,最后分别求每一类的和 分析:树形DP $dp[i][j]$ 表示以 i 为根的子树中,所有子节点到 i 的路径长度模3等于 j 的路径之和 $c[i][j]$ 表示以 i 为根的子树中,所有子节点到 i ...
分类:
其他好文 时间:
2019-09-15 11:04:09
阅读次数:
97
树形dp 题:https://nanti.jisuanke.com/t/41403 题意:求任意俩点之间距离之和模3后的三个结果的总数(原距离之和) #include<bits/stdc++.h> using namespace std; #define pb push_back typedef l ...
分类:
其他好文 时间:
2019-09-15 10:25:39
阅读次数:
62
An undirected, connected?tree with nodes labelled and `edges`?are?given. The th edge connects nodes and together. Return a list , where is the sum of ...
分类:
其他好文 时间:
2019-09-15 01:12:27
阅读次数:
221
题目链接: "HDU 5119" Problem Description Matt has N friends. They are playing a game together. Each of Matt’s friends has a magic number. In the game, Mat ...
分类:
移动开发 时间:
2019-09-14 00:48:37
阅读次数:
116
Given an array of strings, group anagrams together. Example: 题意: 给定一堆单词,把变位词放一块儿去。 碎碎念: 开始想说“eat” 转charArray {'e', 'a', 't'} “tea” 转charArray {'t', 'e ...
分类:
其他好文 时间:
2019-09-12 09:21:57
阅读次数:
75