摘要:
In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers: In this problem, you are given n, you have to fi 阅读全文
摘要:
lcm: 传送门 找到以下代码的结果: long long pairsFormLCM( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) for( int j = i; j <= n; j++ ) if( lcm(i, j) == 阅读全文
摘要:
小 A 有 m 个格子从左到右排开,同时有 n 种球,编号 1⋯n ,每个格子可以(且必须)放一种球。 当 对于每一个格子 i, i 右边所有格子中球的编号都不小于 i 中球的编号 时,小 A 会认为这种放球方案是合理的。 请你求出有多少种会让小 A 认为合理的方案,方案数对 99824435399 阅读全文