本文分类:news发布日期:2026/2/23 8:52:28
打赏

相关文章

题解:AcWing 874 筛法求欧拉函数

【题目来源】 AcWing:874. 筛法求欧拉函数 - AcWing题库 【题目描述】 给定一个正整数 \(n\),求 \(1\sim n\) 中每个数的欧拉函数之和。 【输入】 共一行,包含一个整数 \(n\)。 【输出】 共一行,包含一个整数,表示…

print the terain

"You are given an array like [5, 4, 3, 2, 1, 3, 4, 0, 3, 4] Part 1:Print a terrain where each number represents the height of a column at that index. 1 def print_terrain(heights):2 if not heig…

题解:AcWing 872 最大公约数

【题目来源】 AcWing:872. 最大公约数 - AcWing题库 【题目描述】 给定 \(n\) 对正整数 \(a_i,b_i\),请你求出每对数的最大公约数。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包含一个整数对 \(a_i,b_…

题解:AcWing 870 约数个数

【题目来源】 AcWing:870. 约数个数 - AcWing题库 【题目描述】 给定 \(n\) 个正整数 \(a_i\),请你输出这些数的乘积的约数个数,答案对 \(10^9+7\) 取模。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包…

题解:AcWing 871 约数之和

【题目来源】 AcWing:871. 约数之和 - AcWing题库 【题目描述】 给定 \(n\) 个正整数 \(a_i\),请你输出这些数的乘积的约数之和,答案对 \(10^9+7\) 取模。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部