1. clock frequency PeriodHS PeriodVS rate 2. x+y+z=280 3. x+y+z=20 ...
分类:
其他好文 时间:
2018-11-15 12:01:13
阅读次数:
140
Average distance HDU - 2376 Given a tree, calculate the average distance between two vertices in the tree. For example, the average distance between t ...
分类:
其他好文 时间:
2018-11-14 19:50:10
阅读次数:
122
要写甲级题,首要任务是解决英文这个大难题。 困难词汇(我不认识的):calculate计算 standard format 标准格式 digits数字 separated 分离 commas逗号 这道题的大致意思是,给出两个数a和b,并且a和b都大于等于-10的6次方小于等于10的6次方,求出a和b ...
分类:
其他好文 时间:
2018-11-12 21:21:58
阅读次数:
190
A sorted list A contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q. What is the K-th smallest fra ...
分类:
其他好文 时间:
2018-11-09 20:52:52
阅读次数:
296
命令行参数 命令行界面中,可执行文件可以在键入命令的同一行中获取参数用于具体的执行命令。无论是Python、Java还是C等等,这些语言都能够获取命令行参数(Command line argument,与命令同一行中的附加项)。 C编写的可执行文件的程序入口函数是 函数,因此C程序真正读取命令行参数 ...
分类:
其他好文 时间:
2018-11-06 18:16:36
阅读次数:
173
Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes ... ...
分类:
其他好文 时间:
2018-11-06 11:15:31
阅读次数:
164
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Outpu... ...
分类:
其他好文 时间:
2018-11-06 11:10:04
阅读次数:
145
欧拉函数相关 1,$phi(i)$表示在1到i的数中与i互质的数的个数。 2,$O(\sqrt{n})$求$phi$ ? 算数基本定理: $$ phi(i)=i (p_1 1)/p_1 (p_2 1)/p_2 …… (p_k 1)/p_k $$ ? 枚举质因数套公式即可: ? code: 3,线性筛 ...
分类:
其他好文 时间:
2018-11-05 10:11:56
阅读次数:
132
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen ...
分类:
其他好文 时间:
2018-11-03 15:24:09
阅读次数:
152
Lighting overview照明概述 In order to calculate the shading of a 3D object, Unity needs to know the intensity, direction and color of the light that falls... ...
分类:
编程语言 时间:
2018-11-01 16:59:45
阅读次数:
187