摘要:
【题目来源】 AtCoder:B - Order of Books on the Bookshelf 【题目描述】 Takahashi's bookshelf has \(N\) books lined up in a row. The \(i\)-th book from the left has 阅读全文
posted @ 2026-06-21 11:25
团爸讲算法
阅读(12)
评论(0)
推荐(0)
摘要:
【题目来源】 AcWing:866 试除法判定质数 - AcWing题库 【题目描述】 给定 \(n\) 个正整数 \(a_i\),判定每个数是否是质数。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包含一个正整数 \(a_i\)。 【输出】 共 \(n\) 行,其中第 \( 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(8)
评论(0)
推荐(0)
摘要:
【题目来源】 AtCoder:C - Reward for Carrying Luggage 【题目描述】 There are \(N\) rooms arranged in a row, numbered Room \(1\), Room \(2\), \(\ldots\), Room \(N\) 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(10)
评论(0)
推荐(0)
摘要:
【题目来源】 AtCoder:C - Optimal Menu Selection for an Izakaya 【题目描述】 Takahashi is at an izakaya (Japanese-style pub). The menu has \(N\) dishes, and the \( 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(9)
评论(0)
推荐(0)
摘要:
【题目来源】 AtCoder:D - Card Taking Game 【题目描述】 Takahashi and Aoki play a game using cards. 高桥和青木用卡片玩一个游戏。 \(N\) cards are arranged in a row on the table, 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(15)
评论(0)
推荐(0)
摘要:
【题目来源】 AtCoder:D - Organizing the Bookshelf 【题目描述】 Takahashi has \(N\) books arranged in a row from left to right on his bookshelf. The \(i\)-th book 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(10)
评论(0)
推荐(0)
摘要:
【题目来源】 AtCoder:B - Footsteps in the Hallway 【题目描述】 Takahashi is trying to walk through a long corridor consisting of \(N\) tiles arranged in a row. Th 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(15)
评论(0)
推荐(0)
摘要:
【题目来源】 AcWing:869 试除法求约数 - AcWing题库 【题目描述】 给定 \(n\) 个正整数 \(a_i\),对于每个整数 \(a_i\),请你按照从小到大的顺序输出它的所有约数。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包含一个整数 \(a_i\)。 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(10)
评论(0)
推荐(0)
摘要:
【题目来源】 AcWing:868 筛质数 - AcWing题库 【题目描述】 给定一个正整数 \(n\),请你求出 \(1\sim n\) 中质数的个数。 【输入】 共一行,包含整数 \(n\)。 【输出】 共一行,包含一个整数,表示 \(1\sim n\) 中质数的个数。 【输入样例】 8 【输 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(19)
评论(0)
推荐(0)
摘要:
【题目来源】 AcWing:870 约数个数 - AcWing题库 【题目描述】 给定 \(n\) 个正整数 \(a_i\),请你输出这些数的乘积的约数个数,答案对 \(10^9+7\) 取模。 【输入】 第一行包含整数 \(n\)。 接下来 \(n\) 行,每行包含一个整数 \(a_i\)。 【输 阅读全文
posted @ 2026-06-21 11:24
团爸讲算法
阅读(15)
评论(0)
推荐(0)
浙公网安备 33010602011771号